A Flutter package for all platform which provides a custom date picker
Add the package to pubspec.yaml
dependencies:
flutter_date_range_picker:
git:
url: https://github.com/linagora/flutter-date-range-picker.git
ref: master
Import it
import 'package:flutter_date_range_picker/flutter_date_range_picker.dart';
Use the widget
- Open date range picker:
MaterialDateRangePickerDialog.showDateRangePicker(
context,
selectDateRangeActionCallback: (startDate, endDate) {}
);
- Open date picker:
MaterialDateRangePickerDialog.showDatePicker(
context,
title
selectDateActionCallback: (dateSelected) {}
);