v1.1.0simple_month_year_picker
简单易用的月/年选择器,适用于您的应用,具有高度可定制选项。
7喜欢 300近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
sivaprasadnk/SimpleMonthYearPicker open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
Simple to use month/year picker for your apps with highly customisable options.
Add this to your package's pubspec.yaml file
dependencies:
simple_month_year_picker: ^1.1.0
Next, you just have to import the package using:
import 'package:simple_month_year_picker/simple_month_year_picker.dart';
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'),
);
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗