Centered the add player button and made it wider
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user