Skip to content

PationPrime/Scrollable-Date-Picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,) {},
),

About

Flutter scrollable date picker package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published