nepali_date_picker library Null safety

Classes

CalendarDatePicker
Displays a grid of days for a given month and allows the user to select a date. [...]
CalendarDateRangePicker
Displays a scrollable calendar grid that allows a user to select a range of dates.
InputDatePickerFormField
A TextFormField configured to accept and validate a date entered by the user. [...]
NepaliDateFormat
NepaliDateFormat is for formatting and parsing dates in Bikram Sambat.
NepaliDateTime
An instant in time, such as Mangsir 05, 2076, 11:05am
NepaliDateTimeRange
Encapsulates a start and end NepaliDateTime that represent the range of dates between them.

Extensions

ENepaliDateTime

Functions

showAdaptiveDatePicker({required BuildContext context, required NepaliDateTime initialDate, required NepaliDateTime firstDate, required NepaliDateTime lastDate, Language language = Language.english, DateOrder dateOrder = DateOrder.mdy, DatePickerMode initialDatePickerMode = DatePickerMode.day}) Future<NepaliDateTime?>
Shows nepali date picker of style that adapts as per the platform.
showCupertinoDatePicker({required BuildContext context, required NepaliDateTime initialDate, required NepaliDateTime firstDate, required NepaliDateTime lastDate, required ValueChanged<NepaliDateTime> onDateChanged, Language language = Language.english, DateOrder dateOrder = DateOrder.mdy}) → void
Shows Cupertino-styled nepali date picker.
showMaterialDatePicker({required BuildContext context, required NepaliDateTime initialDate, required NepaliDateTime firstDate, required NepaliDateTime lastDate, NepaliDateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, SelectableDayPredicate? selectableDayPredicate, String? helpText, String? cancelText, String? confirmText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder, DatePickerMode initialDatePickerMode = DatePickerMode.day, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText}) Future<NepaliDateTime?>
Shows a dialog containing a Material Design date picker. [...]
showMaterialDateRangePicker({required BuildContext context, NepaliDateTimeRange? initialDateRange, required NepaliDateTime firstDate, required NepaliDateTime lastDate, NepaliDateTime? currentDate, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, String? helpText, String? cancelText, String? confirmText, String? saveText, String? errorFormatText, String? errorInvalidText, String? errorInvalidRangeText, String? fieldStartHintText, String? fieldEndHintText, String? fieldStartLabelText, String? fieldEndLabelText, Locale? locale, bool useRootNavigator = true, RouteSettings? routeSettings, TextDirection? textDirection, TransitionBuilder? builder}) Future<NepaliDateTimeRange?>
Shows a full screen modal dialog containing a Material Design date range picker. [...]

Enums

DateOrder
Specifies date order arrangements in cupertino date picker.
Language
Specifies Language.

Typedefs

SelectableDayPredicate = bool Function(NepaliDateTime day)
Signature for predicating dates for enabled date selections.