mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Adds model layer and list view to veggieseasons. (#13)
This commit is contained in:
@@ -4,6 +4,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/screens/home.dart';
|
||||
import 'package:veggieseasons/styles.dart';
|
||||
|
||||
@@ -14,9 +16,12 @@ void main() {
|
||||
]);
|
||||
|
||||
runApp(
|
||||
CupertinoApp(
|
||||
color: Styles.appBackground,
|
||||
home: HomeScreen(),
|
||||
ScopedModel<AppState>(
|
||||
model: AppState(),
|
||||
child: CupertinoApp(
|
||||
color: Styles.appBackground,
|
||||
home: HomeScreen(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user