From bc300d81d9490e718cb024145dba4a19af5619ce Mon Sep 17 00:00:00 2001 From: Aunali321 Date: Tue, 16 Apr 2024 20:00:46 +0530 Subject: [PATCH] feat: open browser when clicking on changelog link --- android/app/src/main/AndroidManifest.xml | 3 +- .../homeView/update_confirmation_sheet.dart | 51 +++++++++++-------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index b49b7e84..0f1c81cb 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -26,7 +26,8 @@ android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:largeHeap="true" - android:requestLegacyExternalStorage="true"> + android:requestLegacyExternalStorage="true" + android:enableOnBackInvokedCallback="true"> href != null + ? launchUrl( + Uri.parse(href), + mode: LaunchMode.externalApplication, + ) + : null, + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + padding: const EdgeInsets.all(20.0), + data: snapshot.data!['body'] ?? '', ), + ), ], ); },