FSidebarGroupStyle.inherit constructor
FSidebarGroupStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FSidebarGroupStyle that inherits its properties.
Implementation
FSidebarGroupStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
labelStyle: typography.sm.copyWith(
color: colors.mutedForeground,
overflow: TextOverflow.ellipsis,
fontWeight: FontWeight.w500,
),
actionStyle: FWidgetStateMap({
WidgetState.hovered | WidgetState.pressed: IconThemeData(color: colors.primary, size: 18),
WidgetState.any: IconThemeData(color: colors.mutedForeground, size: 18),
}),
tappableStyle: style.tappableStyle,
focusedOutlineStyle: style.focusedOutlineStyle,
itemStyle: FSidebarItemStyle.inherit(colors: colors, typography: typography, style: style),
);