month_picker_dialog
library
Classes
-
The arrows that are used on the header to change between the pages of the grid.
-
The main part of the header. Where arrows and current interval are presented.
-
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.
-
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.
-
The widget that will hold all of the Header widgets.
-
-
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
Functions
-
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, Locale? locale, bool selectableMonthPredicate(DateTime)?, ButtonStyle? monthStylePredicate(DateTime)?, ButtonStyle? yearStylePredicate(int)?, bool capitalizeFirstLetter = true, Color? selectedMonthBackgroundColor, Color? selectedMonthTextColor, Color? unselectedMonthTextColor, Color? currentMonthTextColor, double selectedMonthPadding = 0, Color? backgroundColor, Widget? confirmWidget, Widget? cancelWidget, double? customHeight, double customWidth = 320, bool yearFirst = false, bool dismissible = false, double roundedCornersRadius = 0, bool forceSelectedDate = false, int animationMilliseconds = 450, double? textScaleFactor, double? arrowSize, bool forcePortrait = false, Widget? customDivider, bool blockScrolling = true, BorderSide dialogBorderSide = BorderSide.none, OutlinedBorder buttonBorder = const CircleBorder(), })
→ Future<DateTime?>
-
Displays month picker dialog.