FAccordionStyle.inherit constructor
FAccordionStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FDividerStyles that inherits its properties.
Implementation
FAccordionStyle.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) : this(
titleTextStyle: .from(
typography.sm.copyWith(fontWeight: .w500, color: colors.foreground),
variants: {
[.hovered, .pressed]: .delta(decoration: () => .underline),
},
),
childTextStyle: typography.sm.copyWith(color: colors.foreground),
iconStyle: .all(
IconThemeData(color: colors.mutedForeground, size: touch ? typography.lg.fontSize : typography.md.fontSize),
),
focusedOutlineStyle: style.focusedOutlineStyle,
dividerStyle: FDividerStyle(color: colors.border, padding: .zero),
tappableStyle: style.tappableStyle.copyWith(motion: FTappableMotion.none),
);