opt: custom webview dialog

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-22 21:47:36 +08:00
parent ff80385a2e
commit 6dcfd6e0a9

View File

@@ -63,13 +63,14 @@ class _AboutPageState extends State<AboutPage> {
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});
}
},
),
);