diff --git a/lib/pantallas/pantalla_crear_partida.dart b/lib/pantallas/pantalla_crear_partida.dart index 93c9a48..37e4d61 100644 --- a/lib/pantallas/pantalla_crear_partida.dart +++ b/lib/pantallas/pantalla_crear_partida.dart @@ -230,7 +230,7 @@ class _PantallaCrearPartidaState extends State { mainAxisSize: MainAxisSize.min, children: [ DropdownButtonFormField( - value: seleccionado, + initialValue: seleccionado, decoration: InputDecoration( prefixIcon: const Icon(Icons.person), hintText: l10n.selectProfile, diff --git a/lib/pantallas/pantalla_lobby_host.dart b/lib/pantallas/pantalla_lobby_host.dart index 2c2930a..3e716d8 100644 --- a/lib/pantallas/pantalla_lobby_host.dart +++ b/lib/pantallas/pantalla_lobby_host.dart @@ -81,7 +81,7 @@ class _PantallaLobbyHostState extends State { ), const SizedBox(height: 12), DropdownButtonFormField( - value: _perfilSeleccionado, + initialValue: _perfilSeleccionado, decoration: InputDecoration( prefixIcon: const Icon(Icons.person), hintText: l10n.selectProfile, diff --git a/test/estado_juego_crear_partida_host_test.dart b/test/estado_juego_crear_partida_host_test.dart index 828e33d..1028316 100644 --- a/test/estado_juego_crear_partida_host_test.dart +++ b/test/estado_juego_crear_partida_host_test.dart @@ -1,6 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:farolero/estado/estado_juego.dart'; -import 'package:farolero/modelos/palabra.dart'; import 'package:farolero/modelos/partida.dart'; void main() { diff --git a/test/estado_juego_host_local_test.dart b/test/estado_juego_host_local_test.dart index 9a85fb3..23d5b65 100644 --- a/test/estado_juego_host_local_test.dart +++ b/test/estado_juego_host_local_test.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:farolero/estado/estado_juego.dart'; diff --git a/test/servicio_nearby_user_pool_test.dart b/test/servicio_nearby_user_pool_test.dart index e640715..a87bd43 100644 --- a/test/servicio_nearby_user_pool_test.dart +++ b/test/servicio_nearby_user_pool_test.dart @@ -1,4 +1,3 @@ -import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:farolero/modelos/usuario.dart'; import 'package:farolero/servicios/servicio_nearby.dart';