blowe_bloc 0.3.1
blowe_bloc: ^0.3.1 copied to clipboard
An advanced Flutter package for state management and business logic components, extending flutter_bloc.
0.3.1 #
Bug Fixes #
- Dropdown Overflow: Fixed an issue in the
BloweDropdownButtonFormFieldwhere long text in dropdown items could cause overflow. AddedisExpanded: trueto ensure proper text handling and prevent layout issues.
Dependency Updates #
- Shared Preferences: Updated
shared_preferencesfrom^2.2.3to^2.3.2. - SDK Version: Updated the Dart SDK constraint from
">=2.17.0 <4.0.0"to">=3.4.0 <4.0.0".
0.3.0 #
New Features #
- BloweSearchBloc: A new bloc for handling paginated data along with managing a search history.
- BloweSearchEvent: Events specific to the BloweSearchBloc including adding, removing, and clearing search history.
- BloweSearchDelegate: A new delegate for searching with automatic history management and debounce support.
- BloweSerializableItem: A base class requiring implementing classes to have a
toJsonmethod for serialization. - BloweSearchParams: A base class for search parameters that includes a
queryfield.
Improvements #
- BlowePaginationListView:
- Now only triggers
loadMorewhen scrolling down. - Added the
shrinkWrapproperty to optionally wrap the list view's contents.
- Now only triggers
Example Application #
- Example Application Update: Added a new example in the
exampleapp demonstrating the usage ofBloweSearchBlocandBloweSearchDelegate.- The example includes setup for
BookSearchBlocand integration withBloweSearchDelegateto showcase search functionality with history management and debounce.
- The example includes setup for
0.2.6 #
New Features #
- Error Widget: Added custom error widget support in
BlowePaginationListViewusingerrorBuilder. - On Refresh Enable: Added the
onRefreshEnabledparameter toBlowePaginationListViewto control the visibility of the refresh indicator.
0.2.5 #
Bug Fixes #
- BlowePaginationListView: Fixed an issue where the ScrollController was not updating on Android devices by implementing
BouncingScrollPhysicswithAlwaysScrollableScrollPhysicsas the parent. This change ensures consistent scroll behavior and accurate pagination across both Android and iOS platforms.
0.2.4 #
Bug Fixes #
-
BlowePaginationListView:
- Fixed an issue where applying filters to the paginated list caused incorrect pagination behavior. The problem was due to the filtered item count not matching the total item count, leading to unnecessary fetches for more pages.
- Added a
filteredDataparameter to_BlowePaginationListViewLoadedto handle filtered items separately. - Adjusted pagination control logic to use
filteredDatafor determining item count. - Updated scroll controller listener to prevent additional fetches when all items are loaded.
- Improved handling of group headers and empty state in the paginated list.
Example App #
- Fixed issues in the
books_repositoryof the example project to ensure proper functionality and to reflect the latest updates in theBlowePaginationListView.
0.2.3 #
New Features #
- README and Documentation Updates: Enhanced README with detailed descriptions, examples, and structured sections for Blowe Logic, Blowe Widgets, and Blowe Models.
- Added descriptions and examples for
BloweLoadBloc,BloweWatchBloc,BlowePaginationBloc. - Added descriptions and examples for
BloweBlocSelector,BloweMultiBlocSelector,BloweBlocListener,BloweBlocButton,BlowePaginationListView,BloweTextFormField,BloweDropdownButtonFormField,BloweBoolFormListTile,BloweRadiusForm. - Included detailed usage examples and explanations for each widget and model.
- Added descriptions and examples for
Improvements #
- BloweRadiusForm Documentation: Updated the internal documentation of
BloweRadiusFormto reflect changes and provide a clearer example. - README Enhancement: The README now includes a structured and comprehensive description of the package, along with examples for each component.
- Pagination Logic Fix: Addressed an issue in
BlowePaginationListViewwhere backend calls were being made too frequently with largemaxScrollExtentvalues. Now, backend calls are triggered when the scroll position is within 200 pixels from the bottom, ensuring consistent behavior regardless of content size. - Example Application: Added a new example application in the
examplefolder demonstrating the usage of various components in theblowe_blocpackage.- The example includes setup for
NotesLoadBloc,NotesWatchBloc, andNotesPaginationBloc, along with corresponding models and form widgets.
- The example includes setup for
Bug Fixes #
- Pagination Trigger Issue: Fixed the issue where backend calls in
BlowePaginationListViewwere being made too frequently as themaxScrollExtentincreased. The new implementation ensures calls are made consistently 200 pixels from the bottom.
0.2.2 #
New Features #
- BloweRadiusForm: Introduced a new form field widget that manages a list of radio list tiles within a form, providing an easy way to handle single selection inputs.
- BloweRadiusFormController: Added a new controller to manage the state of the selected item in the
BloweRadiusForm. - Toggleable: Added
toggleableproperty toRadioListTilewithin the form to allow deselecting items. - Dynamic Shape Handling: Improved shape handling to dynamically reflect error and disabled states, providing better visual feedback to users.
Improvements #
- Improved documentation and examples to include the new
BloweRadiusFormwidget and its usage. - Enhanced user experience with better visual feedback through dynamic shape adjustments based on form state.
0.2.1 #
New Features #
- BloweBoolFormListTile: Introduced a new form field widget that can be used as either a
SwitchListTileor aCheckboxListTile, providing a unified interface for boolean form controls. - BloweBoolFormController: Added a new controller to manage the state of boolean form controls.
- BloweBoolListTileType: Created an enum to specify the type of ListTile (
switchTileorcheckboxTile), allowing dynamic rendering of the tile type. - Customization: Added support for dynamic title and validator functions to enhance customization and validation capabilities.
Improvements #
- Improved documentation and code comments for better clarity and maintainability.
0.2.0 #
- Added
hintTextproperty toBloweTextFormFieldto display a hint when the text field is empty, with access to the widget's context. - Added
inputFormattersproperty toBloweTextFormFieldto allow for custom input formatting. - Updated the constructor documentation to include the new properties.
- Ensured the new properties are used in the build method of the text form field.
0.1.9 #
- Added
contextparameter toonTapcallback inBloweTextFormFieldto provide access to the widget's context. - Added
prefixIconproperty toBloweTextFormFieldto allow for custom prefix icons. - Updated the constructor documentation to include the new properties.
- Ensured the new properties are used in the build method of the text form field.
0.1.8 #
- Added
onTapproperty toBloweTextFormFieldto allow for custom tap handling. - Updated the constructor documentation to include the new
onTapproperty. - Ensured the new property is used in the build method of the text form field.
0.1.7 #
- Added
initialValueproperty toBloweTextFormFieldto set the initial value of the text field. - Added
readOnlyproperty toBloweTextFormFieldto indicate if the text field is read-only. - Updated the constructor documentation to include the new properties.
- Ensured the new properties are used in the build method of the text form field.
0.1.6 #
- Added the ability to group items in BlowePaginationListView using a custom
groupByfunction. - Introduced
BloweGroupHeaderBuilderto create custom group headers with access to the list of items in each group. - Ensured that grouped items are correctly displayed with headers and that the list remains scrollable.
- Added an assert to ensure
groupByandgroupHeaderBuilderare provided together for clearer error messages. - Updated the README.md to reflect the new version number 0.1.6.
0.1.5 #
- Added the ability to pass a custom filter function to dynamically filter items in BlowePaginationListView.
- Updated the constructor to accept an optional filter parameter.
- Applied the filter to the items before displaying them.
- Ensured that the filtering works seamlessly with the existing onRefresh functionality.
- Made BlowePaginationModel non-abstract to allow instantiation.
- Added the ability to pass an
emptyWidgetto display when the list is empty. - Wrapped the
emptyWidgetin aRefreshIndicatorto allow onRefresh functionality even when the list is empty. - Updated documentation and examples to reflect these changes.
0.1.4 #
- Added the ability to pass dynamic parameters for the
onRefreshandRetryactions inBlowePaginationListView. - Fixed issue with the last item in the list being inside a column, causing visual inconsistencies.
- Ensured the list is always scrollable, even when the items do not fill the screen, to allow for
onRefreshfunctionality.
0.1.3 #
- Update
README.mdversion
0.1.2 #
- Update
README.mdcode example
0.1.1 #
- Added an example demonstrating the usage of
blowe_blocin a Flutter application.
0.1.0 #
- Initial release of
blowe_bloc. - Added advanced BLoC components including
BloweLoadBloc,BlowePaginationBloc, andBloweWatchBloc. - Included models for handling no parameters (
BloweNoParams) and pagination (BlowePaginationModel). - Provided a variety of reactive widgets such as
BloweBlocButton,BloweBlocListener,BloweDropdownButtonFormField,BlowePaginationListView, andBloweTextFormField. - Added selector widgets
BloweBlocSelectorandBloweMultiBlocSelectorfor monitoring BLoC states.