Last active
November 23, 2020 15:04
-
-
Save guidezpl/dd2486a96f4401b9d83f90b345552eb3 to your computer and use it in GitHub Desktop.
Cupertino widgets in MaterialApp
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) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. 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/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
title: 'Flutter Demo', | |
theme: ThemeData(brightness: Brightness.dark), | |
home: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar( | |
middle: Text( | |
'Title', | |
), | |
), | |
child: Center(child: Text('text')), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment