feat: center app bar title
This commit is contained in:
@ -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 {
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user