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'] ?? '', ), + ), ], ); },