Created
November 16, 2021 16:30
-
-
Save omar2205/b334d07141107e57271c0d373550714a to your computer and use it in GitHub Desktop.
Flutter Simple Cupertino App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2021 oskr.nl | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/services.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// const MyApp({Key? key}): super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
SystemChrome.setPreferredOrientations( | |
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); | |
return CupertinoApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
home: MyHomePage(), | |
); | |
} | |
} | |
class MyHomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return const CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar( | |
middle: Text('Allout'), | |
), | |
child: SizedBox(), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment