Created
May 7, 2020 11:42
-
-
Save Cretezy/3c94131532cf4896b15bf1bfae29455c to your computer and use it in GitHub Desktop.
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 characters
void main() { | |
// Create the store | |
final store = Store(); | |
// Register modules | |
CounterModule(store); | |
AuthModule(store); | |
// Provide store to whole application | |
runApp(StoreProvider( | |
store: store, | |
child: ExampleApp(), | |
)); | |
} | |
class ExampleApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: LoginScreen(), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment