FTimePickerStyle.inherit constructor
FTimePickerStyle.inherit({
- required FColors colors,
- required FStyle style,
- required FTypography typography,
- required bool touch,
Creates a FTimePickerStyle that inherits its properties.
Implementation
FTimePickerStyle.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,
),
selectionHeightAdjustment: 5,
spacing: 2,
focusedOutlineStyle: style.focusedOutlineStyle,
hapticFeedback: style.hapticFeedback.selectionClick,
padding: const .only(start: 10, end: 10),
);