Skip to content

Instantly share code, notes, and snippets.

@JosteveGit
Created February 23, 2020 23:33
Show Gist options
  • Save JosteveGit/2a790b2c3ba55c53aaecdbc05a11e6c6 to your computer and use it in GitHub Desktop.
Save JosteveGit/2a790b2c3ba55c53aaecdbc05a11e6c6 to your computer and use it in GitHub Desktop.
Setup
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Center(
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment