mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Add flutter_web samples (#75)
This commit is contained in:
committed by
Andrew Brogdon
parent
42f2dce01b
commit
3fe927cb29
20
web/vision_challenge/lib/main.dart
Normal file
20
web/vision_challenge/lib/main.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'package:flutter_web/material.dart';
|
||||
import 'package:vision_challenge/packages/flutter_redux.dart';
|
||||
import 'package:vision_challenge/packages/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),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user