A simple and customizable calendar picker for Flutter.
- Select single dates
- Select date ranges
- Customize appearance (pending)
- Localization support (pending)
Add the following to your pubspec.yaml
:
dependencies:
easy_calendar_picker: ^0.1.3
Then run flutter pub get.
Import the package:
import 'package:easy_calendar_picker/easy_calendar_picker.dart';
showBottomCalendarPicker(
context,
labelConfig: LabelConfiguration(name: 'App Calendar', textStyle: const TextStyle(fontSize: 18)),
pickType: CalendarPickerType.single,
onTapDate: (val) {},
);
showBottomCalendarPicker(
context,
labelConfig: LabelConfiguration(name: 'App Calendar', textStyle: const TextStyle(fontSize: 18)),
pickType: CalendarPickerType.range,
onRangeChanged: (fromDate, toDate) {},
);
Contributions are welcome! Please open an issue or submit a pull request.