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 ↗