mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 23:59:50 +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(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
String text = '';
|
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
content: TextField(
|
content: TextField(
|
||||||
onChanged: (value) => text = value,
|
autofocus: true,
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
Get.back();
|
Get.back();
|
||||||
Get.toNamed('/webview', parameters: {'url': text});
|
if (value.isNotEmpty) {
|
||||||
|
Get.toNamed('/webview', parameters: {'url': value});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user