Add workaround dialog to profile card login

This commit is contained in:
Tommy Chow
2024-08-16 20:38:57 -07:00
parent 0d68ef6756
commit 584451e082

View File

@ -64,8 +64,32 @@ class ProfileCard extends StatelessWidget {
MaterialPageRoute(
builder: (context) {
return Scaffold(
appBar: const FrostyAppBar(
title: Text('Connect with Twitch'),
appBar: FrostyAppBar(
title: const Text('Connect with Twitch'),
actions: [
IconButton(
icon: const Icon(Icons.help_rounded),
onPressed: () => showDialog(
context: context,
builder: (context) {
return AlertDialog(
title: const Text(
'Workaround for the Twitch cookie banner',
),
content: const Text(
'If the Twitch cookie banner is still blocking the login, try clicking one of the links in the cookie policy description and navigating until you reach the Twitch home page. From there, you can try logging in on the top right profile icon. Once logged in, exit this page and then try again.',
),
actions: [
TextButton(
onPressed: Navigator.of(context).pop,
child: const Text('Close'),
),
],
);
},
),
),
],
),
body: WebViewWidget(
controller: authStore.createAuthWebViewController(),