Created
November 26, 2021 15:42
-
-
Save kasperpeulen/0dea3d6a6b4b091b895d51c3770bf79b to your computer and use it in GitHub Desktop.
Revisions
-
kasperpeulen created this gist
Nov 26, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ 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), ), ); } }