Skip to content

Instantly share code, notes, and snippets.

@guidezpl
Last active November 23, 2020 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guidezpl/dd2486a96f4401b9d83f90b345552eb3 to your computer and use it in GitHub Desktop.
Save guidezpl/dd2486a96f4401b9d83f90b345552eb3 to your computer and use it in GitHub Desktop.
Cupertino widgets in MaterialApp
// 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