month_selector 1.0.0 copy "month_selector: ^1.0.0" to clipboard
month_selector: ^1.0.0 copied to clipboard

outdated

Package to select a month and a year in the calendar

Month selector #

A package that allows the user to select a month and a year on a calendar, without the need to specify a specific day. It returns a Dialog that allows the user to select one or more months.

Features #

Selection of one or several months on a calendar; Multi-selection of months, allowing the selection of months from different years; Customizable to meet specific needs of different projects;

Screenshots #

[./screenshots/img1.png] [./screenshots/img2.png]

How to use #

Add the ``MonthSelector` widget to your code.

Example #

            showDialog(
                context: context,
                builder: (context) {
                  return MonthSelector(
                    callback: (res) {
                      Navigator.pop(context);
                      if (res != null && res != []) {
                        setState(() {
                          month = res[0];
                        });
                      }
                    },
                  );
                });

Parameters list #

These are the main parameters to be configured:

callback: defines a function to be called when the user selects one or more dates.

selectedDate: defines the dates that will be selected when the calendar is opened.

firstDate: defines the earliest selectable date.

lastDate: defines the latest selectable date.

multiSelection: allows the selection of multiple dates

months: defines the month strings displayed on the calendar.

Contributions: #

Darice Sousa

4
likes
0
points
128
downloads

Publisher

unverified uploader

Weekly Downloads

Package to select a month and a year in the calendar

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on month_selector