flutty_state 0.3.1
flutty_state: ^0.3.1 copied to clipboard
Lightweight and reactive state management solution for Flutter.
0.3.0 #
- Log fetch and submit failures via
dart:developerso exceptions are no longer silent - Add optional
onFetchErrorcallback toFetchCubitandFetchAndSubmitPage - Add optional
onSubmitErrorcallback toSubmitCubit,SubmitPageandFetchAndSubmitPage - Expose
OnFetchErrorandOnSubmitErrortypedefs fromutils.dart - Add
FailedWidgetBuilder<E>typedef inutils.dartfor typed fetch error UI customization - Propagate the original exception from
DataFetchFailedtoFetchFailed/RefreshFailedstates (already done forSubmitFailed) soFluttyBlocObserverreceives the real exception - Fix
SubmitCubit.submit/submitAndFetch/submitAndRefreshignoring the caller-providedtimeout(it was always falling back to the 10s default) - Replace
FetchAndSubmitPage.loadingFailedwithfetchFailedBuilderto provide the fetch failure state and a retry callback when building custom error widgets - Ensure default fetch error content stays pull-to-refresh compatible by wrapping it in an always-scrollable
CustomScrollView - Move custom scroll wrapping to page widgets:
PageContentnow renders the provided child as-is, andSubmitPagehandles its ownCustomScrollViewsliver wrapping
0.2.0 #
- Add useCustomScrollView parameter to pages (allow to use own scroll view, useful for slivers)
- Rename childBuilder to builder in SubmitPage for consistency with FetchAndSubmitPage
- Remove useless data param from submit_page app bar builder
0.1.2 #
- Export repository
0.1.1 #
- Add all real code from private lib
- Add examples : fetch_and_submit_page, submit_page and static_page
0.1.0 #
- Initial release