File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ ## 2.2.5
2+
3+ - Fixed the whenStream extension on ` AsyncValue<T> `
4+
15## 2.2.4
26
37- [ bugfix] LoadingStreamProvider > $StreamNotifier
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import 'package:riverpod/riverpod.dart';
55import '../utils/loading_stream_provider.dart' ;
66
77/// Extensions for [AsyncValue] to simplify handling its states.
8- extension AsyncValueExtensions <T > on AsyncValue <T > {
8+ extension AsyncStreamValueExtensions <T > on AsyncValue <T > {
99 /// Performs an action based on the state of the [AsyncValue] . mixed with
1010 /// [LoadingStreamProvider] to handle loading states correctly.
1111 ///
@@ -71,6 +71,10 @@ extension AsyncValueExtensions<T> on AsyncValue<T> {
7171 return error (error, stackTrace! );
7272 }
7373
74+ if (requireValue == null ) {
75+ return loading ();
76+ }
77+
7478 return data (requireValue);
7579 },
7680 );
Original file line number Diff line number Diff line change 1+ export 'async_value_extensions.dart' ;
12export 'color_extensions.dart' ;
23export 'date_extensions.dart' ;
34export 'double_extensions.dart' ;
Original file line number Diff line number Diff line change 11name : wisecore
22description : A flutter core project used by Wisemen. Comes with a bunch of generally useful extensions and functions.
3- version : 2.2.4
3+ version : 2.2.5
44homepage : https://github.com/wisemen-digital/wisemen-flutter-packages/packages/wisecore
55repository : https://github.com/wisemen-digital/wisemen-flutter-packages/packages/wisecore
66
@@ -27,8 +27,8 @@ dependencies:
2727 flutter_platform_alert : ^0.5.3
2828
2929 # platform interfaces
30- plugin_platform_interface : any
31- url_launcher_platform_interface : any
30+ plugin_platform_interface : " >=2.1.8 <3.0.0 "
31+ url_launcher_platform_interface : " >=2.3.2 <3.0.0 "
3232
3333dev_dependencies :
3434 # Static analysis & linting
You can’t perform that action at this time.
0 commit comments