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:
@@ -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(),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user