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

Adds the start of a new sample showcasing Cupertino widgets. (#12)

This commit is contained in:
Andrew Brogdon
2018-08-31 15:08:33 -07:00
committed by GitHub
parent 9d5686ae13
commit 928c40c097
68 changed files with 1822 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
// 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:veggieseasons/screens/home.dart';
import 'package:veggieseasons/styles.dart';
void main() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(
CupertinoApp(
color: Styles.appBackground,
home: HomeScreen(),
),
);
}