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
pagifypackage 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.
maintainStatebehavior ensures list state persists when toggled.
🔍 Smart Search
- Local search: filter through a predefined list of models.
- Remote search: perform API-based search through
Pagifycontrollers. - Automatically updates the list view based on search pattern.
🌐 Dual Data Modes
- Local Mode: Use predefined list of
Modelitems. - Remote Mode: Fetch paginated data from API using
Pagify.
🧩 Developer Friendly
- Simple
SearchableDropdownAPI with two constructors:SearchableDropdown.withApiRequest()— for remote data.SearchableDropdown()— for local data.
- Clear separation of configuration through data classes:
ButtonDataTextFieldDataValuesDataSearchableDropdownPagifyData
🧠 Built-In State Management
- Uses
ValueNotifierto maintain reactive dropdown, initialization, and list updates. - Efficiently toggles between open/close states with animation.