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.
28 lines
782 B
28 lines
782 B
// Copyright 2018 The Flutter team. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
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';
|
|
|
|
void main() {
|
|
SystemChrome.setPreferredOrientations([
|
|
DeviceOrientation.portraitUp,
|
|
DeviceOrientation.portraitDown,
|
|
]);
|
|
|
|
runApp(
|
|
ScopedModel<AppState>(
|
|
model: AppState(),
|
|
child: CupertinoApp(
|
|
color: Styles.appBackground,
|
|
home: HomeScreen(),
|
|
),
|
|
),
|
|
);
|
|
}
|