widgets/picker_bottom_sheet library

Functions

showPickerBottomSheet<T, V>(BuildContext context, {required List<T> sources, required ValueMapper<T, String?> labelMapper, String? title, T? initialData, V? initialValue, ValueMapper<T, V>? valueMapper, ValueMapper<T, String>? subtitleMapper, bool enabledMapper(int index, T item)?, ValueMapper<T, bool>? inputEnabledMapper, ValueMapper<T, bool>? dataMapper, PickerItemBuilder<T>? pickerItemBuilder, bool? isScrollControlled, bool? showSearchField}) Future<T?>
单选选择

Typedefs

PickerItemBuilder<T> = Widget Function(BuildContext context, T data, bool checked, ValueChanged<T> onChanged)
选择项构造方法