range_calendar 0.0.2-dev.1 range_calendar: ^0.0.2-dev.1 copied to clipboard
The range_calendar package has a calendar with daily, weekly and monthly selection option. Just insert a Map<DateTime, List<Widgets>> to perform displaying and filtering events.
range_calendar #
This is a flutter calendar package that allows for daily, weekly and monthly calendar selection.
Getting Started #
Depend on it #
Run this command:
With Flutter:
$ flutter pub add range_calendar
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
range_calendar: ^0.0.1-dev.1
Alternatively, your editor might support or flutter pub get
. Check the docs for your editor to learn more.
Import it #
Now in your Dart code, you can use:
import 'package:range_calendar/range_calendar.dart';
Basic setup #
The complete example is available here.
RangeCalendar(
onDateSelected: (DateTime date) => null,
onTapRange: (CalendarRangeSelected range) => null
)