1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Adds new image assets, card-style list, and new data for the veggies (#38)

This commit is contained in:
Andrew Brogdon
2018-12-19 09:16:26 -08:00
committed by GitHub
parent 2a2c535aab
commit bfb8b8aea9
43 changed files with 390 additions and 576 deletions

View File

@@ -5,7 +5,8 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart' show DeviceOrientation, SystemChrome;
import 'package:scoped_model/scoped_model.dart';
import 'package:veggieseasons/data/model.dart';
import 'package:veggieseasons/data/app_state.dart';
import 'package:veggieseasons/data/preferences.dart';
import 'package:veggieseasons/screens/home.dart';
import 'package:veggieseasons/styles.dart';
@@ -18,9 +19,12 @@ void main() {
runApp(
ScopedModel<AppState>(
model: AppState(),
child: CupertinoApp(
color: Styles.appBackground,
home: HomeScreen(),
child: ScopedModel<Preferences>(
model: Preferences()..load(),
child: CupertinoApp(
color: Styles.appBackground,
home: HomeScreen(),
),
),
),
);