Last active
May 31, 2021 17:24
-
-
Save berkanaslan/060ce4be7f1c41aea674b3d092032a02 to your computer and use it in GitHub Desktop.
This file contains 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 characters
MultiProvider setupProviders() { | |
return MultiProvider( | |
providers: [ | |
... | |
ChangeNotifierProvider<ConnectivityViewModel>( | |
create: (context) => ConnectivityViewModel(), | |
lazy: false, | |
), | |
... | |
], | |
child: MaterialApp(), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment