adaptive_selector 1.0.2 copy "adaptive_selector: ^1.0.2" to clipboard
adaptive_selector: ^1.0.2 copied to clipboard

A Flutter package that creates adaptive selectors for all platforms with customizable features and built-in functionalities.

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,
),

Async selector #

AdaptiveSelector(
  options: asyncOptions,
  decoration: const InputDecoration(
    hintText: 'Select school',
  ),
  loading: loading,
  onSearch: handleSearch,
  hasMoreData: hasMore,
  onLoadMore: handleLoadMore,
),
7
likes
160
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package that creates adaptive selectors for all platforms with customizable features and built-in functionalities.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on adaptive_selector