diff --git a/lib/main.dart b/lib/main.dart index 458966b..6f80f9f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -15,7 +15,7 @@ class TheApp extends StatelessWidget { appBar: AppBar( backgroundColor: Colors.deepPurple, title: const Text("Tamagochi 2.0"), - titleSpacing: Align(this.title), // I want to center-align title horizontaly; ai! + centerTitle: true, ), body: Container( child: const Text("this is a body"), @@ -23,4 +23,4 @@ class TheApp extends StatelessWidget { ) ); } -} \ No newline at end of file +}