lib/daynight_timepicker
library
Functions
-
createInlinePicker({BuildContext? context, required TimeOfDay value, required void onChange(TimeOfDay), void onChangeDateTime(DateTime)?, void onCancel()?, bool is24HrFormat = false, Color? accentColor, Color? unselectedColor, String cancelText = "Cancel", String okText = "Ok", bool isOnChangeValueMode = false, bool ltrMode = true, Image? sunAsset, Image? moonAsset, bool blurredBackground = false, Color barrierColor = Colors.black45, double? borderRadius, double? elevation, EdgeInsets? dialogInsetPadding = const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0), bool barrierDismissible = true, bool iosStylePicker = false, String hourLabel = 'hours', String minuteLabel = 'minutes', MinuteInterval minuteInterval = MinuteInterval.ONE, bool disableMinute = false, bool disableHour = false, double minMinute = 0, double maxMinute = 59, ThemeData? themeData, bool focusMinutePicker = false, double minHour = double.infinity, double maxHour = double.infinity, TextStyle okStyle = const TextStyle(fontWeight: FontWeight.bold), TextStyle cancelStyle = const TextStyle(fontWeight: FontWeight.bold), ButtonStyle? buttonStyle, ButtonStyle? cancelButtonStyle, double? buttonsSpacing})
→ Widget
-
This method is used to render an inline version of the picker.
-
showPicker({BuildContext? context, required TimeOfDay value, required void onChange(TimeOfDay), void onChangeDateTime(DateTime)?, void onCancel()?, bool is24HrFormat = false, Color? accentColor, Color? unselectedColor, String cancelText = "Cancel", String okText = "Ok", Image? sunAsset, Image? moonAsset, bool blurredBackground = false, bool ltrMode = true, Color barrierColor = Colors.black45, double? borderRadius, double? elevation, EdgeInsets? dialogInsetPadding = const EdgeInsets.symmetric(horizontal: 40.0, vertical: 24.0), bool barrierDismissible = true, bool iosStylePicker = false, String hourLabel = 'hours', String minuteLabel = 'minutes', MinuteInterval minuteInterval = MinuteInterval.ONE, bool disableMinute = false, bool disableHour = false, double minMinute = 0, double maxMinute = 59, ThemeData? themeData, bool focusMinutePicker = false, double minHour = double.infinity, double maxHour = double.infinity, TextStyle okStyle = const TextStyle(fontWeight: FontWeight.bold), TextStyle cancelStyle = const TextStyle(fontWeight: FontWeight.bold), ButtonStyle? buttonStyle, ButtonStyle? cancelButtonStyle, double? buttonsSpacing})
→ PageRouteBuilder
-
The function that shows the DayNightTimePicker