Skip to content

Instantly share code, notes, and snippets.

@Cretezy
Created May 7, 2020 11:42
Show Gist options
  • Save Cretezy/3c94131532cf4896b15bf1bfae29455c to your computer and use it in GitHub Desktop.
Save Cretezy/3c94131532cf4896b15bf1bfae29455c to your computer and use it in GitHub Desktop.
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