FAccordionStyle.inherit constructor
FAccordionStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FDividerStyles that inherits its properties.
Implementation
FAccordionStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
titleTextStyle: FWidgetStateMap({
WidgetState.hovered | WidgetState.pressed: typography.base.copyWith(
fontWeight: FontWeight.w500,
color: colors.foreground,
decoration: TextDecoration.underline,
),
WidgetState.any: typography.base.copyWith(fontWeight: FontWeight.w500, color: colors.foreground),
}),
childTextStyle: typography.sm.copyWith(color: colors.foreground),
iconStyle: FWidgetStateMap.all(IconThemeData(color: colors.primary, size: 20)),
focusedOutlineStyle: style.focusedOutlineStyle,
dividerStyle: FDividerStyle(color: colors.border, padding: EdgeInsets.zero),
tappableStyle: style.tappableStyle.copyWith(animationTween: FTappableAnimations.none),
);