Skip to content

Commit

Permalink
handle inappwebview api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisClement committed Oct 17, 2024
1 parent ab00550 commit d5d1ece
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/widgets/home/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Future<void> handleOnTap(context, uri) async {
if (uri.startsWith('app://')) {
RouteStateScope.of(context).go(uri.substring(5));
} else {
await browser.open(url: Uri.parse(uri), options: ChromeSafariBrowserClassOptions());
await browser.open(url: WebUri(uri));
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/home/widget/sponsor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class HomeWidgetSponsor extends StatelessWidget {
text: AppLocalizations.of(context)!.sponsor,
onPressed: () async {
await browser.open(
url: Uri.parse(app.APP_SPONSOR), options: ChromeSafariBrowserClassOptions()
url: WebUri(app.APP_SPONSOR)
);
},
),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/settings/link.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SettingsLink extends StatelessWidget {
),
onTap: () async {
await browser.open(
url: Uri.parse(url), options: ChromeSafariBrowserClassOptions()
url: WebUri(url)
);
},
);
Expand Down

0 comments on commit d5d1ece

Please sign in to comment.