Switch to LaunchMode.inAppBrowserView

Uses Chrome Custom Tabs which has a better navigation menu.
This commit is contained in:
Tommy Chow
2024-08-12 21:55:28 -07:00
parent 13c96fe57b
commit ea8849a782
5 changed files with 8 additions and 8 deletions

View File

@ -643,7 +643,7 @@ class IRCMessage {
Uri.parse(text),
mode: launchExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
);
} else {
@ -738,7 +738,7 @@ class IRCMessage {
Uri.parse(url),
mode: launchExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
);
Navigator.pop(context);

View File

@ -55,7 +55,7 @@ class OnboardingSetup extends StatelessWidget {
),
mode: settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
),
],

View File

@ -348,7 +348,7 @@ class _ChatSettingsState extends State<ChatSettings> {
),
mode: settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
),
],

View File

@ -92,7 +92,7 @@ class _OtherSettingsState extends State<OtherSettings> {
Uri.parse('https://github.com/tommyxchow/frosty/releases'),
mode: widget.settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
),
ListTile(
@ -102,7 +102,7 @@ class _OtherSettingsState extends State<OtherSettings> {
Uri.parse('https://www.frostyapp.io/#faq'),
mode: widget.settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
),
ListTile(

View File

@ -33,7 +33,7 @@ class Settings extends StatelessWidget {
Uri.parse('https://www.buymeacoffee.com/tommychow'),
mode: settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
icon: const Icon(SimpleIcons.buymeacoffee),
),
@ -43,7 +43,7 @@ class Settings extends StatelessWidget {
Uri.parse('https://github.com/tommyxchow/frosty'),
mode: settingsStore.launchUrlExternal
? LaunchMode.externalApplication
: LaunchMode.inAppWebView,
: LaunchMode.inAppBrowserView,
),
icon: const Icon(SimpleIcons.github),
),