platform_specific_date_picker 0.0.1 platform_specific_date_picker: ^0.0.1 copied to clipboard
This package provides platform specific date picker
This package contains platform specific date picker for mobile platforms
Features #
Different UI for date picker on Android, IOS
Getting started #
dart pub add platform_date_picker
Usage #
TODO: Include short and useful examples for package users. Add longer examples
to /example
folder.
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(date.toString()),
ElevatedButton(onPressed: () async {
DateTime? chosenDate = await PlatformDatePicker(context, date);
if(chosenDate != null){
setState(() {
date = chosenDate;
});
}
}, child: Text("Set date")),
],
),
Additional information #
TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.