A fancy and highly customizable date picker for Flutter.
Features
Supports manual input with format checking and picking a date from the provided calendar.
flutter_modal_date_picker is still on the development phase and customization features are yet to be added to this package.
Getting started
Supports all platforms.
Usage
Just call the showModalDatePicker
function and
wait for it to return an string.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
backgroundColor: Colors.white,
body: ElevatedButton(
child: Text(
'show date picker',
style: TextStyle(fontSize: 30),
),
onPressed: () async {
String chosenDate =
await showModalDatePicker(context, DateTime.now());
print(chosenDate);
},
),
),
);
}
}
Additional information
For more info on this package, head onto our github repository. Feel free to open issues and request additional features.