month_picker_dialog library

Classes

HeaderArrows
The arrows that are used on the header to change between the pages of the grid.
HeaderRow
The main part of the header. Where arrows and current interval are presented.
HeaderSelectedDate
The widget that presents the current selected date on the header.
MonthButton
The button to be used on the grid of months.
MonthpickerController
Global controller of the dialog. It holds the initial parameters passed on the widget creation.
MonthPickerDialog
The main dialog widget class. It needs a MonthpickerController controller to be created.
MonthPickerDialogSettings
Class to hold all the customizations of the date picker.
MonthPickerDialogState
MonthSelector
The widget that will hold the month grid selector.
MonthSelectorState
MonthUpDownPageProvider
Provider that controlls the up down state of the header when the monyh selector is on the dialog
MonthYearGridBuilder
The month grid. It has all of the avaliable options to be selected.
PickerButtonBar
The actions button bar. Where confirmation and cancel button are.
PickerButtonsSettings
Class to hold all the customizations of the buttons part of the package.
PickerDialogSettings
Class to hold all the customizations of the dialog part of the package.
PickerHeader
The widget that will hold all of the Header widgets.
PickerHeaderSettings
Class to hold all the customizations of the dialog part of the package.
PickerPager
UpDownButtonEnableState
Class that controlls if the up and down arrows are gonna be enabled or not
UpDownPageLimit
Class that controlls the limit of pages of the up and down arrows
YearButton
The button to be used on the grid of years.
YearGrid
The year grid. It has all of the avaliable options to be selected.
YearSelector
The widget that will hold the year grid selector.
YearSelectorState
YearUpDownPageProvider
Provider that controlls the up down state of the header when the year selector is on the dialog

Extensions

MyDateExtension on DateTime?
Extension on DateTime to get the first day of month
NullableDateTimeExtension on DateTime?

Constants

defaultMonthPickerDialogSettings → const MonthPickerDialogSettings
The default settings for the month picker.
defaultPickerbuttonsSettings → const PickerButtonsSettings
The default settings for the buttons style.
defaultPickerdialogSettings → const PickerDialogSettings
The default settings for the Dialog style.
defaultPickerHeaderSettings → const PickerHeaderSettings
The default settings for the Header style.

Functions

createLocaleString(Locale locale) String
getLocale(BuildContext context, {Locale? selectedLocale}) String
Function to get the selected locale code or the locale of context as a fallback
showMonthPicker({required BuildContext context, DateTime? initialDate, DateTime? firstDate, DateTime? lastDate, bool selectableMonthPredicate(DateTime)?, bool selectableYearPredicate(int)?, ButtonStyle? monthStylePredicate(DateTime)?, ButtonStyle? yearStylePredicate(int)?, Widget? confirmWidget, Widget? cancelWidget, Widget? customDivider, Widget? headerTitle, MonthPickerDialogSettings monthPickerDialogSettings = defaultMonthPickerDialogSettings, bool onlyYear = false}) Future<DateTime?>
Displays month picker dialog.
showMonthRangePicker({required BuildContext context, DateTime? initialRangeDate, DateTime? endRangeDate, DateTime? firstDate, DateTime? lastDate, bool selectableMonthPredicate(DateTime)?, bool selectableYearPredicate(int)?, ButtonStyle? monthStylePredicate(DateTime)?, ButtonStyle? yearStylePredicate(int)?, Widget? confirmWidget, Widget? cancelWidget, Widget? customDivider, Widget? headerTitle, bool rangeList = false, MonthPickerDialogSettings monthPickerDialogSettings = defaultMonthPickerDialogSettings}) Future<List<DateTime>?>
Displays month picker dialog.
showYearPicker({required BuildContext context, DateTime? initialDate, DateTime? firstDate, DateTime? lastDate, bool selectableYearPredicate(int)?, ButtonStyle? yearStylePredicate(int)?, Widget? confirmWidget, Widget? cancelWidget, Widget? customDivider, Widget? headerTitle, MonthPickerDialogSettings monthPickerDialogSettings = defaultMonthPickerDialogSettings}) Future<int?>
Displays only year picker dialog.