flutter_async 0.6.0 flutter_async: ^0.6.0 copied to clipboard
Handle async tasks with ease through automatic loading, error handling, and native widget integration.
Changelog #
This project adheres to Semantic Versioning.
0.6.0 - Oct 10, 2023 #
-
Adds
AsyncNotifier
as new core:async_notifier is now a standalone package. Note: This library is not exported by
flutter_async
. -
BREAKING CHANGE The library was restructured to envision better maintenability and focus on displaying async states only.
- Changes
AsyncConfig
inheritance. - Changes all builders to the
stateBuilder
name convention. - Chnages
.async()
extensions. Use.asAsync()
instead. - Removes
AsyncObserver
. To be reused byasync_notifier
. Wip. - Removes lifecycle utilities for leaner widgets.
- Removes
AsyncController
. Use the specificAsyncState
throughGlobalKey
or context. - Adds
AsyncWidget.at
static callback. Same signature as.of
but visits the state at the current context, removing the need for controllers and global keys. The.at
additionally can receiveT extends StatefulWidget
andkey
to easily identify async widgets at the current context.
- Changes
-
Updates in code were made to better follow Effective Dart style and also improve developer experience:
- Adds
all_lint_rules.yaml
. - Updates
analysis_options
for stricter lints. - Updates CHANGELOG style.
- Adds
0.5.2 - Sep 27, 2023 #
- BREAKING CHANGE
AsyncBuilder
base constructor for simple future/stream objects.AsyncBuilder.function
for managed getFuture/getStream objects.
- Adds
init
anddispose
callbacks toAsyncBuilder
.
0.4.2 - Sep 19, 2023 #
- Adds late final initialization on
AsyncButtonState
.
0.4.1 - Sep 7, 2023 #
-
Adds AsyncObserver for analytics with all possible states within all
AsyncWidget
actions in this package.- AsyncObserver.onActionInit
- AsyncObserver.onActionStart
- AsyncObserver.onActionInsist
- AsyncObserver.onActionSuccess
- AsyncObserver.onActionError
-
Adds
AsyncConfig.buttonLoader
that applies to allAsyncButton
ifAsyncButtonConfig
is not set. -
Adds
AsyncConfig.buttonError
that applies to allAsyncButton
ifAsyncButtonConfig
is not set.
0.3.1 - Aug 17, 2023 #
- Fixes duplicate keys on AsyncButton super.key.
0.3.0 - Aug 16, 2023 #
- BREAKING CHANGE:
AsyncButtonConfig
will no longer be set with static methods. UseAsyncConfig
instead, throughAsync
widget inheritance. - BREAKING CHANGE: WidgetBuilder is used on all state builders widgets for consistency.
- Adds AsyncConfig.of(context);
- Adds AsyncConfig.maybeOf(context);
0.2.0 - Aug 15, 2023 #
- BREAKING CHANGE: AsyncBuilder now has one single constructor.
- AsyncBuilder.future is now deprecated. Renamed to -> AsyncBuilder.getFuture.
- AsyncBuilder.stream is now deprecated. Renamed to -> AsyncBuilder.getStream.
- Adds
Async
widget for void async tasks, utilities and inheritance (you can provide custom loader and error).
0.1.0 - Jul 10, 2023 #
- Updates minimum support to Dart SDK 2.17 <4.0 (flutter 3.0)
0.0.1 - Jul 9, 2023 #
- Initial pre-release.