FPickerStyle.inherit constructor
FPickerStyle.inherit({
- required FColors colors,
- required FStyle style,
- required FTypography typography,
- required bool touch,
Creates a FPickerStyle that inherits its properties.
Implementation
FPickerStyle.inherit({
required FColors colors,
required FStyle style,
required FTypography typography,
required bool touch,
}) : this(
textStyle: touch
? typography.lg.copyWith(fontWeight: .w500, height: 1.25)
: typography.sm.copyWith(fontWeight: .w500),
selectionDecoration: ShapeDecoration(
shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.md),
color: colors.muted,
),
focusedOutlineStyle: style.focusedOutlineStyle,
hapticFeedback: style.hapticFeedback.selectionClick,
);