mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-05 23:44:02 +01:00
Use inAppBrowserView instead of externalApplication
This is probably the reason why some issues have no content
This commit is contained in:
@@ -264,7 +264,9 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext
|
||||
final Uri reportUri = Uri.parse(githubIssueUrl);
|
||||
|
||||
try {
|
||||
await launchUrl(reportUri, mode: LaunchMode.externalApplication);
|
||||
// Not externalApplication: github.com is a verified App Link of the
|
||||
// GitHub app, which drops the template and description (#1437)
|
||||
await launchUrl(reportUri, mode: LaunchMode.inAppBrowserView);
|
||||
} catch (e) {
|
||||
if (kDebugMode) {
|
||||
logger.warning('Error launching URL: $e');
|
||||
|
||||
@@ -279,7 +279,9 @@ class SyncStatusDialog extends ConsumerWidget {
|
||||
serverVersion: ref.read(authProvider).value?.serverVersion,
|
||||
);
|
||||
try {
|
||||
await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
|
||||
// Not externalApplication: github.com is a verified App Link of the
|
||||
// GitHub app, which drops the template and description
|
||||
await launchUrl(Uri.parse(url), mode: LaunchMode.inAppBrowserView);
|
||||
} catch (e, s) {
|
||||
_logger.warning('Error opening issue tracker', e, s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user