@@ -151,8 +151,8 @@ class _FindGatewayGoListPageState extends State<FindGatewayGoListPage> {
151151 if (! (await userSignedIn ())) {
152152 show_failed ("Please login before Add Gateway" , context);
153153 if (! (await userSignedIn ())) {
154- Navigator .of (context). push ( MaterialPageRoute (
155- builder: (context) => LoginPage ()));
154+ Navigator .of (context)
155+ . push ( MaterialPageRoute ( builder: (context) => LoginPage ()));
156156 }
157157 }
158158 TextEditingController nameController =
@@ -318,7 +318,7 @@ class _FindGatewayGoListPageState extends State<FindGatewayGoListPage> {
318318 await _addToMySessionList (
319319 openIoTHubJwt.value, gatewayInfo.name, gatewayInfo.description);
320320 } else {
321- show_failed ("Response: ${operationResponse .msg }" ,context);
321+ show_failed ("Response: ${operationResponse .msg }" , context);
322322 }
323323 //自动 添加网关主机
324324 var device = Device ();
@@ -353,34 +353,36 @@ class _FindGatewayGoListPageState extends State<FindGatewayGoListPage> {
353353 return AlertDialog (
354354 title: Text (OpenIoTHubCommonLocalizations .of (context)
355355 .manually_create_a_gateway),
356- content: SizedBox .expand (
356+ content: SizedBox (
357+ width: 250 ,
358+ height: 400 ,
357359 child: ListView (
358- children: ListTile .divideTiles (
359- context: context,
360- tiles: [
361- Text (OpenIoTHubCommonLocalizations .of (context)
362- .manually_create_a_gateway_description1),
363- Text (OpenIoTHubCommonLocalizations .of (context)
364- .manually_create_a_gateway_description2),
365- Text (
366- OpenIoTHubCommonLocalizations .of (context)
367- .manually_create_a_gateway_description3,
368- style: TextStyle (
369- color: Colors .amber,
370- ),
371- ),
372- DropdownButton <String >(
373- value: value,
374- onChanged: (String ? newVal) {
375- state (() {
376- value = newVal;
377- });
378- },
379- items: l,
380- ),
381- ],
382- ).toList (),
383- )),
360+ children: ListTile .divideTiles (
361+ context: context,
362+ tiles: [
363+ Text (OpenIoTHubCommonLocalizations .of (context)
364+ .manually_create_a_gateway_description1),
365+ Text (OpenIoTHubCommonLocalizations .of (context)
366+ .manually_create_a_gateway_description2),
367+ Text (
368+ OpenIoTHubCommonLocalizations .of (context)
369+ .manually_create_a_gateway_description3,
370+ style: TextStyle (
371+ color: Colors .amber,
372+ ),
373+ ),
374+ DropdownButton <String >(
375+ value: value,
376+ onChanged: (String ? newVal) {
377+ state (() {
378+ value = newVal;
379+ });
380+ },
381+ items: l,
382+ ),
383+ ],
384+ ).toList (),
385+ )),
384386 actions: < Widget > [
385387 TextButton (
386388 child:
@@ -411,7 +413,8 @@ loginwithtokenmap:
411413''' ;
412414 Clipboard .setData (ClipboardData (text: data));
413415 show_success (
414- OpenIoTHubCommonLocalizations .of (context).paste_info, context);
416+ OpenIoTHubCommonLocalizations .of (context).paste_info,
417+ context);
415418 Navigator .of (context).pop ();
416419 },
417420 )
0 commit comments