Skip to content

Commit 5e440e7

Browse files
committed
handle json format error
1 parent 01abde1 commit 5e440e7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Flutter/json_to_dart/lib/main_controller.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class MainController extends GetxController {
8585
// handleError(error, stackTrace);
8686
// });
8787
if (extendedObject == null) {
88+
SmartDialog.dismiss();
8889
showAlertDialog(appLocalizations.illegalJson, Icons.error);
8990
return;
9091
}

Flutter/json_to_dart/pubspec.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ packages:
368368
url: "https://pub.flutter-io.cn"
369369
source: hosted
370370
version: "0.12.11"
371+
material_color_utilities:
372+
dependency: transitive
373+
description:
374+
name: material_color_utilities
375+
url: "https://pub.flutter-io.cn"
376+
source: hosted
377+
version: "0.1.3"
371378
meta:
372379
dependency: transitive
373380
description:
@@ -582,7 +589,7 @@ packages:
582589
name: test_api
583590
url: "https://pub.flutter-io.cn"
584591
source: hosted
585-
version: "0.4.3"
592+
version: "0.4.8"
586593
time:
587594
dependency: transitive
588595
description:

0 commit comments

Comments
 (0)