Keyboard still doesnt works

This commit is contained in:
2025-07-20 18:21:30 +02:00
parent a4693ccf39
commit 68a1a5052e
2 changed files with 178 additions and 180 deletions

View File

@@ -140,7 +140,7 @@ class _CreateGameViewState extends State<CreateGameView> {
Flexible( Flexible(
child: ReorderableListView.builder( child: ReorderableListView.builder(
shrinkWrap: true, shrinkWrap: true,
physics: const BouncingScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
padding: const EdgeInsets.all(8), padding: const EdgeInsets.all(8),
itemCount: _playerNameTextControllers.length, itemCount: _playerNameTextControllers.length,
onReorder: (oldIndex, newIndex) { onReorder: (oldIndex, newIndex) {
@@ -207,36 +207,32 @@ class _CreateGameViewState extends State<CreateGameView> {
}), }),
), ),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 0, 50), padding: const EdgeInsets.fromLTRB(8, 0, 8, 50),
child: Center( child: Center(
child: SizedBox(
width: double.infinity,
child: CupertinoButton( child: CupertinoButton(
padding: EdgeInsets.zero, padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
CupertinoButton( Text(
padding: EdgeInsets.zero,
onPressed: null,
child: Icon(
CupertinoIcons.plus_circle_fill,
color: CustomTheme.primaryColor,
size: 25,
)),
Stack(children: [
Expanded(
child: Center(
child: Text(
AppLocalizations.of(context).add_player, AppLocalizations.of(context).add_player,
style: TextStyle(color: CustomTheme.primaryColor), style: TextStyle(color: CustomTheme.primaryColor),
), ),
const SizedBox(width: 8),
Icon(
CupertinoIcons.add_circled_solid,
color: CustomTheme.primaryColor,
size: 25,
), ),
),
]),
], ],
), ),
onPressed: () { onPressed: () {
if (_playerNameTextControllers.length < maxPlayers) { if (_playerNameTextControllers.length < maxPlayers) {
setState(() { setState(() {
_playerNameTextControllers.add(TextEditingController()); _playerNameTextControllers
.add(TextEditingController());
}); });
} else { } else {
showFeedbackDialog(CreateStatus.maxPlayers); showFeedbackDialog(CreateStatus.maxPlayers);
@@ -245,6 +241,7 @@ class _CreateGameViewState extends State<CreateGameView> {
), ),
), ),
), ),
),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(0, 0, 0, 50), padding: const EdgeInsets.fromLTRB(0, 0, 0, 50),
child: Center( child: Center(
@@ -263,7 +260,8 @@ class _CreateGameViewState extends State<CreateGameView> {
), ),
), ),
], ],
)))); ),
)));
} }
Future<void> _createGame() async { Future<void> _createGame() async {

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo" description: "Mobile app for the card game Cabo"
publish_to: 'none' publish_to: 'none'
version: 0.5.0+558 version: 0.5.0+568
environment: environment:
sdk: ^3.5.4 sdk: ^3.5.4