Skip to content

Instantly share code, notes, and snippets.

@craigomac
Created June 11, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigomac/e99c6f9ebbc56f9f83990c1ae440cea0 to your computer and use it in GitHub Desktop.
Save craigomac/e99c6f9ebbc56f9f83990c1ae440cea0 to your computer and use it in GitHub Desktop.
void main() {
final store = new Store<AppState>(
AppStateReducer(),
initialState: AppState.initial(),
middleware: [
AssetMiddleware("assets"),
AudioMiddleware(),
]);
runApp(new App(
store: store,
));
store.dispatch(AssetsPrepareLevelsAction());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment