Webview for external panels and everything

This commit is contained in:
Yegor Vialov
2020-01-27 21:25:55 +00:00
parent cf6039b279
commit fda8fb7182
5 changed files with 39 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class Panel {
)
);
} else {
Launcher.launchURLInCustomTab(url: "${ConnectionManager().httpWebHost}/$urlPath");
Launcher.launchAuthenticatedWebView(context: context, url: "${ConnectionManager().httpWebHost}/$urlPath", title: "${this.title}");
}
}

View File

@ -19,7 +19,7 @@ class LinkToWebConfig extends StatelessWidget {
style: new TextStyle(fontWeight: FontWeight.bold, fontSize: Sizes.largeFontSize)),
subtitle: Text("Tap to open web version"),
onTap: () {
Launcher.launchURLInCustomTab(url: this.url);
Launcher.launchAuthenticatedWebView(context: context, url: this.url, title: this.name);
},
)
],