Skip to content
pubscout

custom_date_range_picker

1.2.0, released a year ago by an unverified publisher

A customizable date range picker dialog with smooth animations for Android and iOS.

WASM-ready
$ flutter pub add custom_date_range_picker
Source repository

What it does

Provides a customizable date range picker dialog that allows users to select a start and end date within minimum and maximum bounds. It can be triggered via a function call, offering custom styling options such as primary and background colors.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a user interface for picking a date range in a Flutter application.
  • You want to customize the colors and styling of the date range picker dialog.

Skip it when

  • You require a persistent inline calendar widget rather than a modal dialog.
  • You need complex event scheduling capabilities built directly into the calendar.

Strengths

  • Customizable primary and background colors.
  • Supports minimum and maximum allowable date boundaries.

Weaknesses

  • Limited to a modal dialog implementation based on the provided usage.
  • Lacks advanced calendar features like event markers or custom cell builders.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
showCustomDateRangePicker(
  context,
  dismissible: true,
  minimumDate: DateTime.now().subtract(const Duration(days: 30)),
  maximumDate: DateTime.now().add(const Duration(days: 30)),
  endDate: endDate,
  startDate: startDate,
  backgroundColor: Colors.white,
  primaryColor: Colors.green,
  onApplyClick: (start, end) {
    setState(() {
      endDate = end;
      startDate = start;
    });
  },
  onCancelClick: () {
    setState(() {
      endDate = null;
      startDate = null;
    });
  },
);

Alternatives

Packages that do the same job and could replace custom_date_range_picker.

  • calendar_date_picker2

    Provides highly customizable calendar date picker widgets including single, range, and multi-date selection modes.

Works with

Packages commonly used together with custom_date_range_picker: ones it builds on, ones built on it, and its own family.