Skip to content

Instantly share code, notes, and snippets.

@adityapatnaik
Created September 5, 2019 16:58
Show Gist options
  • Save adityapatnaik/447832eedc695e430294bbe84aefe0cd to your computer and use it in GitHub Desktop.
Save adityapatnaik/447832eedc695e430294bbe84aefe0cd to your computer and use it in GitHub Desktop.
iOS starter App on Flutter
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