2 Commits

Author SHA1 Message Date
a1a995777b Adjusted margin
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m8s
2025-12-06 17:23:40 +01:00
3d12f0c160 Fixed width problem in choose game view 2025-12-06 17:23:20 +01:00
3 changed files with 27 additions and 30 deletions

View File

@@ -49,15 +49,15 @@ class _ChooseGameViewState extends State<ChooseGameView> {
), ),
centerTitle: true, centerTitle: true,
), ),
body: Container( body: Column(
decoration: CustomTheme.standardBoxDecoration,
padding: const EdgeInsets.all(10),
child: Column(
children: [ children: [
CustomSearchBar( Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: CustomSearchBar(
controller: searchBarController, controller: searchBarController,
hintText: 'Game Name', hintText: 'Game Name',
), ),
),
const SizedBox(height: 5), const SizedBox(height: 5),
Expanded( Expanded(
child: ListView.builder( child: ListView.builder(
@@ -79,7 +79,6 @@ class _ChooseGameViewState extends State<ChooseGameView> {
), ),
], ],
), ),
),
); );
} }
} }

View File

@@ -123,7 +123,7 @@ class _CreateGameViewState extends State<CreateGameView> {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Container( Container(
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 10), margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 5),
child: TextInputField( child: TextInputField(
controller: _gameNameController, controller: _gameNameController,
hintText: 'Game name', hintText: 'Game name',
@@ -213,7 +213,6 @@ class _CreateGameViewState extends State<CreateGameView> {
}, },
), ),
), ),
CustomWidthButton( CustomWidthButton(
text: 'Create game', text: 'Create game',
sizeRelativeToWidth: 0.95, sizeRelativeToWidth: 0.95,
@@ -232,7 +231,6 @@ class _CreateGameViewState extends State<CreateGameView> {
} }
: null, : null,
), ),
const SizedBox(height: 20),
], ],
), ),
), ),

View File

@@ -24,7 +24,7 @@ class TitleDescriptionListTile extends StatelessWidget {
return GestureDetector( return GestureDetector(
onTap: onPressed, onTap: onPressed,
child: AnimatedContainer( child: AnimatedContainer(
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 10), margin: const EdgeInsets.symmetric(vertical: 10, horizontal: 10),
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 12), padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 12),
decoration: isHighlighted decoration: isHighlighted
? CustomTheme.highlightedBoxDecoration ? CustomTheme.highlightedBoxDecoration