scrollable_date_picker 1.2.1 copy "scrollable_date_picker: ^1.2.1" to clipboard
scrollable_date_picker: ^1.2.1 copied to clipboard

Scrollable date picker flutter package.

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,) {},
),
9
likes
130
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

Scrollable date picker flutter package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl, super_sliver_list

More

Packages that depend on scrollable_date_picker