From 9325cd49f859947ba87d1a1b1cd4711cb764bf41 Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Sat, 19 Apr 2025 11:48:53 +0300 Subject: [PATCH] feat: center app bar title --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}