Created
November 26, 2021 15:42
-
-
Save kasperpeulen/0dea3d6a6b4b091b895d51c3770bf79b to your computer and use it in GitHub Desktop.
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
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp(home: MyScaffold()); | |
} | |
} | |
class MyScaffold extends StatelessWidget { | |
const MyScaffold({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(title: Text('Title')), | |
body: Center(child: Text('Hello World')), | |
floatingActionButton: FloatingActionButton( | |
onPressed: () => print('Button pressed'), | |
child: Icon(Icons.add), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment