Created
September 5, 2019 16:58
-
-
Save adityapatnaik/447832eedc695e430294bbe84aefe0cd to your computer and use it in GitHub Desktop.
iOS starter App on Flutter
This file contains 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
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 CupertinoApp( | |
debugShowCheckedModeBanner: false, | |
theme: CupertinoThemeData( | |
textTheme: CupertinoTextThemeData( | |
navLargeTitleTextStyle: TextStyle( | |
fontWeight: FontWeight.bold, | |
fontSize: 70.0, | |
color: CupertinoColors.darkBackgroundGray, | |
) | |
) | |
) , | |
home: HomeScreen(), | |
); | |
} | |
} | |
class HomeScreen extends StatefulWidget { | |
@override | |
_HomeScreenState createState() => _HomeScreenState(); | |
} | |
class _HomeScreenState extends State<HomeScreen> { | |
@override | |
Widget build(BuildContext context) { | |
return CupertinoPageScaffold( | |
child: Center( | |
child: Text('That\'s It', | |
style: CupertinoTheme.of(context).textTheme.navLargeTitleTextStyle, | |
), | |
), | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment