FTileStyle.inherit constructor
FTileStyle.inherit({
- required FColorScheme colorScheme,
- required FTypography typography,
- required FStyle style,
Creates a FTileStyle that inherits from the given colorScheme
and typography
.
Implementation
FTileStyle.inherit({required FColorScheme colorScheme, required FTypography typography, required FStyle style})
: this(
border: Border.all(width: style.borderWidth, color: colorScheme.border),
focusedBorder: Border.all(width: style.borderWidth, color: colorScheme.primary),
borderRadius: style.borderRadius,
enabledBackgroundColor: colorScheme.background,
enabledHoveredBackgroundColor: colorScheme.secondary,
disabledBackgroundColor: colorScheme.disable(colorScheme.secondary),
dividerStyle: FDividerStyle(color: colorScheme.border, width: style.borderWidth, padding: EdgeInsets.zero),
focusedDividerStyle: FDividerStyle(
color: colorScheme.primary,
width: style.borderWidth,
padding: EdgeInsets.zero,
),
contentStyle: FTileContentStyle.inherit(colorScheme: colorScheme, typography: typography),
);