Last active
May 31, 2021 17:24
-
-
Save berkanaslan/060ce4be7f1c41aea674b3d092032a02 to your computer and use it in GitHub Desktop.
Revisions
-
berkanaslan revised this gist
May 31, 2021 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,8 @@ MultiProvider setupProviders() { return MultiProvider( providers: [ ... ChangeNotifierProvider<ConnectivityViewModel>( create: (context) => ConnectivityViewModel(), lazy: false, ), ... -
berkanaslan created this gist
May 29, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ MultiProvider setupProviders() { return MultiProvider( providers: [ ... StreamProvider<ConnectivityResult>( initialData: ConnectivityResult.mobile, create: (context) => ConnectivityViewModel().connectivity, lazy: false, ), ... ], child: MaterialApp(), ); }