simple_date_range_picker 0.0.1 copy "simple_date_range_picker: ^0.0.1" to clipboard
simple_date_range_picker: ^0.0.1 copied to clipboard

A simple, stylish date range picker component for Flutter.

SimpleDateRangePicker #

A simple, stylish DateTimeRange picker component for Flutter.

Features #

  • In-line widget for selecting a range of dates (DateTimeRange)
  • showSimpleDateRangePickerDialog method to easily display the picker in a dialog

Date range picker with a date range selected

Getting started #

Install the package by adding the following to your pubspec.yaml file:

dependencies:
  simple_date_range_picker: ^0.0.1

Usage #

Import the package into your project:

import 'package:simple_date_range_picker/simple_date_range_picker.dart';

Use the SimpleDateRangePicker widget to display the picker as an in-line widget:

SimpleDateRangePicker(
  onChanged: (dateRange) => setState(() => selectedDates = dateRange),
),

Or, use showSimpleDateRangePickerDialog to display the picker as a modal dialog:

final dateRange = await showSimpleDateRangePickerDialog(context);

Roadmap #

Additional features planned for the future include:

  • Customizable colors, borders, and TextStyles for the picker
  • Customizable colors, border, TextStyles, and buttons for the dialog
  • Date validation - determine which dates are selectable
  • Custom initial month view - specify which month to display first
3
likes
0
pub points
55%
popularity

Publisher

verified publisherandyhorn.dev

A simple, stylish date range picker component for Flutter.

Homepage

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on simple_date_range_picker