dropinity 0.0.2
dropinity: ^0.0.2 copied to clipboard
a powerful and customizable paginated dropdown widget for Flutter
0.0.2 #
π Pagination
- Integrated with the
pagify
package for effortless pagination. - Supports async API calls with loading, success, and error states.
- Includes automatic retry, refresh, and filtering support.
π¨ Customizable UI
- Customizable main button (color, radius, padding, icons, size, etc.).
- Customizable text field for search input with full styling control.
- Animated dropdown with smooth transitions.
maintainState
behavior ensures list state persists when toggled.
π Smart Search
- Local search: filter through a predefined list of models.
- Remote search: perform API-based search through
Pagify
controllers. - Automatically updates the list view based on search pattern.
π Dual Data Modes
- Local Mode: Use predefined list of
Model
items. - Remote Mode: Fetch paginated data from API using
Pagify
.
π§© Developer Friendly
- Simple
SearchableDropdown
API with two constructors:SearchableDropdown.withApiRequest()
β for remote data.SearchableDropdown()
β for local data.
- Clear separation of configuration through data classes:
ButtonData
TextFieldData
ValuesData
SearchableDropdownPagifyData
π§ Built-In State Management
- Uses
ValueNotifier
to maintain reactive dropdown, initialization, and list updates. - Efficiently toggles between open/close states with animation.