Do Widgets tutorial #1
@@ -11,11 +11,16 @@ class MainApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const MaterialApp(
|
||||
return MaterialApp(
|
||||
home: Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text("Birdle"),
|
||||
),
|
||||
),
|
||||
body: Center(
|
||||
//child: Text('Wow, nice, Hello World!'),
|
||||
child: Tile("A", .hit),
|
||||
child: Tile("A", HitType.hit),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user