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

outdated

Date Range Pickers use a dialog window to select a range of date on mobile.

date_range_picker #

Flutter date range pickers use a dialog window to select a range of date on mobile.

Demo #

Getting Started #

Installation #

Add to pubspec.yaml in dependencies

  date_range_picker:
    git:
      url: git://github.com/anicdh/date_range_picker.git

Usage #

import 'package:date_range_picker/date_range_picker.dart' as DateRagePicker;
...
new MaterialButton(
    color: Colors.deepOrangeAccent,
    onPressed: () async {
      final List<DateTime> picked = await DateRagePicker.showDatePicker(
          context: context,
          initialFirstDate: new DateTime.now(),
          initialLastDate: (new DateTime.now()).add(new Duration(days: 7)),
          firstDate: new DateTime(2015),
          lastDate: new DateTime(2020)
      );
      if (picked != null && picked.length == 2) {
          print(picked);
      }
    },
    child: new Text("Pick date range")
)
120
likes
0
pub points
92%
popularity

Publisher

unverified uploader

Date Range Pickers use a dialog window to select a range of date on mobile.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on date_range_picker