@@ -41,24 +41,24 @@ class GameErrorView extends StatelessWidget {
4141 final link = error.link;
4242 content = [
4343 Text (error.message),
44- const SizedBox (height: 4 ),
44+ const SizedBox (height: 8 ),
4545 if (link != null )
46- Row (
47- children : [
48- Expanded (
49- child: TextFormField (
50- initialValue: link,
51- readOnly: true ,
52- decoration: InputDecoration (
53- labelText: AppLocalizations .of (context).link,
54- suffixIcon : IconButton (
55- icon : const Icon ( PhosphorIconsLight .paperPlaneRight),
56- onPressed : () => launchUrlString (link ,
57- mode : LaunchMode .externalApplication) ,
58- ),
46+ ConstrainedBox (
47+ constraints :
48+ const BoxConstraints (maxWidth : LeapBreakpoints .compact),
49+ child: TextFormField (
50+ initialValue: link,
51+ readOnly: true ,
52+ decoration: InputDecoration (
53+ labelText: AppLocalizations .of (context).link,
54+ filled : true ,
55+ suffixIcon : IconButton (
56+ icon : const Icon ( PhosphorIconsLight .paperPlaneRight) ,
57+ onPressed : () => launchUrlString (link ,
58+ mode : LaunchMode .externalApplication ),
5959 ),
60- ))
61- ] ,
60+ ),
61+ ) ,
6262 )
6363 ];
6464 }
@@ -67,12 +67,12 @@ class GameErrorView extends StatelessWidget {
6767 alignment: Alignment .center,
6868 children: [
6969 const DotsBackground (),
70- Card . filled (
70+ Card (
7171 child: Container (
7272 constraints: const BoxConstraints (
73- maxWidth: LeapBreakpoints .large ,
73+ maxWidth: LeapBreakpoints .expanded ,
7474 ),
75- padding: const EdgeInsets .all ( 8.0 ),
75+ padding: const EdgeInsets .symmetric (horizontal : 16 , vertical : 16 ),
7676 child: SingleChildScrollView (
7777 child: Column (
7878 mainAxisSize: MainAxisSize .min,
@@ -106,7 +106,7 @@ class GameErrorView extends StatelessWidget {
106106 ),
107107 ],
108108 ),
109- if (state.error != null ) ...[
109+ if (state.error != null && state.error is ! KickMessage ) ...[
110110 const SizedBox (height: 16 ),
111111 Text (state.error.toString ()),
112112 ],
0 commit comments