simple_month_year_picker

Creator: coderz1093

Last updated:

Add to Cart

Description:

simple month year picker

Simple Month Year Picker #
Simple to use month/year picker for your apps with highly customisable options.

Getting started #
Add this to your package's pubspec.yaml file
dependencies:
simple_month_year_picker: ^1.0.5
copied to clipboard
Usage #
Next, you just have to import the package using:
import 'package:simple_month_year_picker/simple_month_year_picker.dart';
copied to clipboard
Widget build(BuildContext context) {
return ElevatedButton(
onPressed: () async {
// This is in order to get the selected date.
final selectedDate =
await SimpleMonthYearPicker.showMonthYearPickerDialog(
context: context,
titleTextStyle: TextStyle(),
monthTextStyle: TextStyle(),
yearTextStyle: TextStyle(),
disableFuture:
true // This will disable future years. it is false by default.
);
// Use the selected date as needed
print('Selected date: $selectedDate');
},
child: const Text('show dialog'),
);
}
copied to clipboard
Additional information #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.