From ba53e84cd0ad1cde3195be97e3a4fce1cbcf2285 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 7 Sep 2022 18:29:21 +0700 Subject: [PATCH] TF-884 Update docs `adr` --- ...-app-when-open-webview-on-android-device.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/adr/0010-crash-app-when-open-webview-on-android-device.md b/docs/adr/0010-crash-app-when-open-webview-on-android-device.md index 41264013c..fe103b05b 100644 --- a/docs/adr/0010-crash-app-when-open-webview-on-android-device.md +++ b/docs/adr/0010-crash-app-when-open-webview-on-android-device.md @@ -8,23 +8,21 @@ Open ## Context -- When using a webview inside of a scrollview, -some content renders a completely distorted page and some content even crashes the app. -This problem only affects Android the same app, on iOS the same code results in a correclty rendered web page. -Rendering the same content also works fine on Android, when not embedding the webview inside of a scrollview. +- When using a `WebView` inside of a `Scrollview`, some content renders a completely distorted page and some content even crashes the app. +This problem only affects Android the same app, on iOS the same code results in a correctly rendered web page. +Rendering the same content also works fine on Android, when not embedding the `WebView` inside of a scrollview. -- Flutter version has problem: 3.0.3 +- Flutter version has problem: >= `3.0.0` +- Library `webview_flutter` version used: `3.0.0` ## Decision -- When using a webview inside of a scrollview, -some content renders a completely distorted page and some content even crashes the app. -This problem only affects Android the same app, on iOS the same code results in a correclty rendered web page. -Rendering the same content also works fine on Android, when not embedding the webview inside of a scrollview. +- Temporary solution: Set maximum height of `WebView` on `Android` device equal to device physical size height ## Consequences -- From now we waiting web_view lib update and for android device if content of web_view has max height is 6000, +- Email content is displayed well on `Android` devices. No more distortion and crashes +- The content scroll bar appears inside the email detail display. ## Reference