flutter_custom_select
Flutter 自訂選擇器 Dart 套件,擁有出色的使用者介面。
- 星標
- 3
- 分支
- 8
- 最近推送(UTC)
- 2023年3月21日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Multi Select Flutter
FLutter Custom Selector is a package for creating single-select as well ass multi-select widgets with an awesome and unique user interface.
![]() Single Selection |
![]() Multi Selection |
|---|
Features
- Supports FormField features like validator.
- Awesome default design.
- BottomSheet widget.
- Make your multi selection awesome.
- All selection field is enabled in multi selection field.
Usage
CustomSingleSelectField
This widget provide an GestureDetector which open the bottom sheet and are equipped with FormField features. You can customize it using the provided parameters.
To store the selected values, you can use the onSelectionDone parameter.
CustomSingleSelectField<String>(
items: dataString,
title: "Country",
onSelectionDone: (value){
selectedString = value;
setState(() {});
},
itemAsString: (item)=>item,
),
CustomMultiSelectField
This widget provide an GestureDetector which open the bottom sheet and are equipped with FormField features. You can customize it using the provided parameters.
To store the selected values, you can use the onSelectionDone parameter.
CustomMultiSelectField<String>(
title: "Country",
items: dataString,
enableAllOptionSelect: true,
onSelectionDone: _onCountriesSelectionComplete,
itemAsString: (item) => item.toString(),
),
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
使用的依賴
依賴清單 3 項
- flutter
{"sdk":"flutter"} - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^1.0.0
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗