FTimePickerStyle.inherit constructor

FTimePickerStyle.inherit({
  1. required FColors colors,
  2. required FStyle style,
  3. required FTypography typography,
  4. 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),
     );