Skip to content

Instantly share code, notes, and snippets.

@omar2205
Created November 16, 2021 16:30
Show Gist options
  • Save omar2205/b334d07141107e57271c0d373550714a to your computer and use it in GitHub Desktop.
Save omar2205/b334d07141107e57271c0d373550714a to your computer and use it in GitHub Desktop.
Flutter Simple Cupertino App
// 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