custom_date_range_picker 1.0.8 copy "custom_date_range_picker: ^1.0.8" to clipboard
custom_date_range_picker: ^1.0.8 copied to clipboard

A Flutter package for both android and iOS which provides a custom date range picker

custom_date_range_picker #

custom_date_range_picker

To call the CustomDateRangePicker component, you need to pass the following props:

...
  floatingActionButton: FloatingActionButton(
        onPressed: () {
          showCustomDateRangePicker(
            context,
            dismissible: true,
            minimumDate: DateTime.now(),
            maximumDate: DateTime.now().add(const Duration(days: 30)),
            endDate: endDate,
            startDate: startDate,
            onApplyClick: (start, end) {
              setState(() {
                endDate = end;
                startDate = start;
              });
            },
            onCancelClick: () {
              setState(() {
                endDate = null;
                startDate = null;
              });
            },
          );
        },
        tooltip: 'choose date Range',
        child: const Icon(Icons.calendar_today_outlined, color: Colors.white),
      ),

Many Thanks to the creator of this Repo https://github.com/mitesh77/Best-Flutter-UI-Templates

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

72
likes
0
pub points
96%
popularity

Publisher

unverified uploader

A Flutter package for both android and iOS which provides a custom date range picker

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on custom_date_range_picker