mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: custom webview dialog
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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});
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user