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 ↗