Centered the add player button and made it wider

This commit is contained in:
2025-07-20 23:58:09 +02:00
parent a5bd9367a0
commit 3090af9e5c

View File

@@ -207,24 +207,37 @@ class _CreateGameViewState extends State<CreateGameView> {
}), }),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 50), padding: const EdgeInsets.fromLTRB(8, 0, 8, 50),
child: Center( child: Stack(
child: SizedBox(
width: double.infinity,
child: CupertinoButton(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Row(
AppLocalizations.of(context).add_player, mainAxisAlignment: MainAxisAlignment.start,
style: TextStyle(color: CustomTheme.primaryColor), children: [
), CupertinoButton(
const SizedBox(width: 8), padding: EdgeInsets.zero,
Icon( onPressed: null,
CupertinoIcons.add_circled_solid, child: Icon(
CupertinoIcons.plus_circle_fill,
color: CustomTheme.primaryColor, color: CustomTheme.primaryColor,
size: 25, size: 25,
), ),
),
],
),
Center(
child: CupertinoButton(
padding: const EdgeInsets.symmetric(horizontal: 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(
child: Center(
child: Text(
AppLocalizations.of(context).add_player,
style: TextStyle(
color: CustomTheme.primaryColor),
),
),
),
], ],
), ),
onPressed: () { onPressed: () {
@@ -239,6 +252,7 @@ class _CreateGameViewState extends State<CreateGameView> {
}, },
), ),
), ),
],
), ),
), ),
Padding( Padding(