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:
22
veggieseasons/lib/main.dart
Normal file
22
veggieseasons/lib/main.dart
Normal 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(),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user