feat: center app bar title

This commit is contained in:
Grail Finder (aider)
2025-04-19 11:48:53 +03:00
parent 9327435453
commit 9325cd49f8

View File

@ -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 {
)
);
}
}
}