Last updated:
0 purchases
scrollable date picker
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 #
Open a command line and cd to your projects root folder;
In your pubspec, add a package entry to your dependencies (example below);
Pubspec #
dependencies:
scrollable_date_picker: ^1.2.1
copied to clipboard
import 'package:scrollable_date_picker/scrollable_date_picker.dart';
copied to clipboard
Load the appropriate data by calling initializeDateFormatting() method.
Future<void> main() async {
await initializeDateFormatting();
runApp(const MyApp());
}
copied to clipboard
Usage #
Simple usage example
ScrollableDatePicker(
minDate: DateTime(DateTime.now().year - 2),
maxDate: DateTime.now().copyWith(month: 12),
onDateSelect: (singleDate, dates, dateRange,) {},
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.