mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
383 B
21 lines
383 B
import 'package:flutter/material.dart';
|
|
import 'package:flutter_redux/flutter_redux.dart';
|
|
import 'package:redux/redux.dart';
|
|
import 'game.dart';
|
|
|
|
void main() {
|
|
final store = Store<AppState>(
|
|
reducer,
|
|
initialState: AppState.init(),
|
|
);
|
|
|
|
runApp(
|
|
StoreProvider<AppState>(
|
|
store: store,
|
|
child: MaterialApp(
|
|
home: Game(store),
|
|
),
|
|
),
|
|
);
|
|
}
|