diff --git a/lib/pages/about/index.dart b/lib/pages/about/index.dart index 62dbb53ef..eb575d1fb 100644 --- a/lib/pages/about/index.dart +++ b/lib/pages/about/index.dart @@ -63,13 +63,14 @@ class _AboutPageState extends State { showDialog( context: context, builder: (context) { - String text = ''; return AlertDialog( content: TextField( - onChanged: (value) => text = value, + autofocus: true, onSubmitted: (value) { Get.back(); - Get.toNamed('/webview', parameters: {'url': text}); + if (value.isNotEmpty) { + Get.toNamed('/webview', parameters: {'url': value}); + } }, ), );