day_night_time_picker library

Classes

Time
Model wrapper class Time for TimeOfDay

Enums

SelectedInput
TimePickerInterval
interval enum

Constants

BORDER_RADIUS → const double
Default Border radius value in double
ELEVATION → const double
Default Elevation value in double
SUN_MOON_WIDTH → const double
Width of the sun/moon asset

Functions

createInlinePicker() → void
showPicker({Key? key, BuildContext? context, required Time value, required void onChange(Time), bool isInlinePicker = false, void onChangeDateTime(DateTime)?, void onCancel()?, bool is24HrFormat = false, Color? accentColor, Color? unselectedColor, bool isOnChangeValueMode = false, String cancelText = 'Cancel', String okText = 'Ok', String amLabel = 'am', String pmLabel = 'pm', 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), EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 12.0), bool barrierDismissible = true, bool iosStylePicker = false, bool displayHeader = true, String hourLabel = 'hours', String minuteLabel = 'minutes', String secondLabel = 'seconds', TimePickerInterval minuteInterval = TimePickerInterval.ONE, TimePickerInterval secondInterval = TimePickerInterval.ONE, bool disableMinute = false, bool disableHour = false, double minMinute = 0, double maxMinute = 59, double minSecond = 0, double maxSecond = 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), TextStyle? hmsStyle, ButtonStyle? buttonStyle, ButtonStyle? cancelButtonStyle, double? buttonsSpacing, bool hideButtons = false, bool disableAutoFocusToNextInput = false, double width = 300, double? height, bool showSecondSelector = false, double? wheelHeight, double? wheelMagnification, bool showCancelButton = true, dynamic sunrise = const TimeOfDay(hour: 6, minute: 0), dynamic sunset = const TimeOfDay(hour: 18, minute: 0), dynamic duskSpanInMinutes = 120, RouteSettings? settings, Color? backgroundColor}) → dynamic
The function that shows the DayNightTimePicker