Scrollable Date Picker

Scrollable Date Picker allows to use single, multiple and range picker.

This package depends on super_sliver_list package, primarily to use the "scroll to item" (scroll to initial date) functionality and intl package, primarily to use date formatting functionality.

Getting Started

Instructions

  1. Open a command line and cd to your projects root folder;
  2. In your pubspec, add a package entry to your dependencies (example below);

Pubspec

dependencies:
  scrollable_date_picker: ^1.2.1
import 'package:scrollable_date_picker/scrollable_date_picker.dart';
  1. Load the appropriate data by calling initializeDateFormatting() method.
Future<void> main() async {
  await initializeDateFormatting();
  runApp(const MyApp());
}

Usage

Simple usage example

ScrollableDatePicker(
  minDate: DateTime(DateTime.now().year - 2),
  maxDate: DateTime.now().copyWith(month: 12),
  onDateSelect: (singleDate, dates, dateRange,) {},
),