FTileStyle.inherit constructor
FTileStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FTileStyle.
Implementation
FTileStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
backgroundColor: .all(colors.card),
decoration: FVariants.from(
ShapeDecoration(
shape: RoundedSuperellipseBorder(
side: BorderSide(color: colors.border, width: style.borderWidth),
borderRadius: style.borderRadius.md,
),
color: colors.card,
),
variants: {
[.hovered, .pressed]: .shapeDelta(color: colors.secondary),
//
[.disabled]: .shapeDelta(color: colors.disable(colors.secondary)),
},
),
contentStyle: FTileContentStyle.inherit(
colors: colors,
typography: typography,
prefix: colors.primary,
foreground: colors.foreground,
mutedForeground: colors.mutedForeground,
),
rawItemContentStyle: FRawTileContentStyle.inherit(
colors: colors,
typography: typography,
prefix: colors.primary,
color: colors.foreground,
),
tappableStyle: style.tappableStyle.copyWith(
motion: FTappableMotion.none,
pressedEnterDuration: .zero,
pressedExitDuration: const Duration(milliseconds: 25),
),
focusedOutlineStyle: style.focusedOutlineStyle,
shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.md),
);