diff --git a/lib/pages/lobby_selector.dart b/lib/pages/lobby_selector.dart index cc6e962..9748407 100644 --- a/lib/pages/lobby_selector.dart +++ b/lib/pages/lobby_selector.dart @@ -59,27 +59,26 @@ class _LobbySelectorState extends State { Future buildJoinOrHostDialog(BuildContext context) { return showDialog( context: context, - builder: (BuildContext builderContext) { + builder: (BuildContext context) { return Scaffold( body: AlertDialog( title: const Text('Host or join?'), actions: [ TextButton( child: const Text('Cancel'), - onPressed: () => builderContext.pop(), + onPressed: () => context.pop(), ), TextButton( child: const Text('Host'), onPressed: () { - builderContext.pop(); //close dialog before going to host - builderContext.goNamed('host'); + context.pop(); //close dialog before going to host + context.goNamed('host'); }), TextButton( child: const Text('Join'), onPressed: () { - builderContext - .pop(); //close dialog before going to next dialog - buildEnterPassphraseDialog(builderContext); + context.pop(); //close dialog before going to next dialog + buildEnterPassphraseDialog(context); }, ), ],