可以单选,多选,详情见官网:https://pub.dev/packages/find_dropdown
效果图:
插件:find_dropdown: ^1.0.0
导入:import ‘package:find_dropdown/find_dropdown.dart’;
使用:
Container(
padding: EdgeInsets.all(2),
child: FindDropdown(
searchHint:'搜索',
items: ["张三", "李四", "王五", "赵柳"],
onChanged: (item) {
print(item);
},
selectedItem: "请选择",
),
),