0 purchases
adaptive selector
adaptive_selector
Simple and robust Selector that adaptive for all platform.
Getting started #
Basic usage #
// Create list option
final options = SelectorType.values
.map((e) => AdaptiveSelectorOption(label: e.name, value: e))
.toList();
// Apply option to AdaptiveSelector
AdaptiveSelector(
options: options,
initialOption: options.first,
type: SelectorType.menu,
allowClear: false,
),
copied to clipboard
Async selector #
AdaptiveSelector(
options: asyncOptions,
decoration: const InputDecoration(
hintText: 'Select school',
),
loading: loading,
onSearch: handleSearch,
hasMoreData: hasMore,
onLoadMore: handleLoadMore,
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.