feat: 新版登录页:以APP接口和新界面全面重构网页版登录;更新二维码与极验插件;更新版本号

This commit is contained in:
orz12
2024-07-07 15:31:58 +08:00
parent 8bb990015c
commit 8daf603fdb
17 changed files with 1575 additions and 1114 deletions

View File

@@ -36,25 +36,14 @@ class _WebviewPageState extends State<WebviewPage> {
icon: Icon(Icons.refresh_outlined,
color: Theme.of(context).colorScheme.primary),
),
if (_webviewController.type.value != 'login')
IconButton(
tooltip: '用外部浏览器打开',
onPressed: () {
launchUrl(Uri.parse(_webviewController.url));
},
icon: Icon(Icons.open_in_browser_outlined,
color: Theme.of(context).colorScheme.primary),
),
if (_webviewController.type.value == 'login') ...<Widget>[
TextButton(
onPressed: () => _webviewController.confirmLogin(null),
child: const Text('刷新登录态'),
),
TextButton(
child: const Text('电脑版'),
onPressed: () => _webviewController.webviewInit(uaType: 'pc'),
)
],
IconButton(
tooltip: '用外部浏览器打开',
onPressed: () {
launchUrl(Uri.parse(_webviewController.url));
},
icon: Icon(Icons.open_in_browser_outlined,
color: Theme.of(context).colorScheme.primary),
),
const SizedBox(width: 12)
],
),