Closed fch21 closed 2 years ago
Hi, you are using a third-party package & the issue is not directly related to Flutter itself. It would be helpful for you to get help regarding this issue from the package developer.
I also created an issue for the third-party package: https://github.com/pichillilorenzo/flutter_inappwebview/issues/1186
But since I saw this other problem that I suspect may be connected, I believe it may be a flutter problem related to the hybrid composition :
Hi @fch21, thanks for filing the issue. But this issue is not reproducible on the latest stable
and master
channels.
There is an explanation here that related to this issue. Take a look at the in_app_webview's source code and you'll see the same. So, let's upgrade your Flutter SDK to the latest and try again.
Closing this issue as above explanation. If you disagree, please write in the comments and I will reopen it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to Reproduce
flutter run
on the code sampleExpected results: The expected is that the change between PageView pages will occur without any effect on the appBar or bottomNavigationBar.
Actual results: We can see an unwanted flickering effect in the widgets.
Code sample
```dart [example_bug_webview.zip](https://github.com/flutter/flutter/files/8709150/example_bug_webview.zip) ```Logs
``` devfuretcompany@mac-mini-de-dev example_bug_webview % flutter run --verbose [ +129 ms] executing: sysctl hw.optional.arm64 [ +30 ms] Exit code 0 from: sysctl hw.optional.arm64 [ +3 ms] hw.optional.arm64: 1 [ +9 ms] executing: [/Users/devfuretcompany/Documents/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +26 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 5464c5bac742001448fe4fc0597be939379f88ea [ +1 ms] executing: [/Users/devfuretcompany/Documents/flutter/] git tag --points-at 5464c5bac742001448fe4fc0597be939379f88ea [ +34 ms] Exit code 0 from: git tag --points-at 5464c5bac742001448fe4fc0597be939379f88ea [ ] 2.10.5 [ +14 ms] executing: [/Users/devfuretcompany/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +19 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/Users/devfuretcompany/Documents/flutter/] git ls-remote --get-url origin [ +17 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +136 ms] executing: [/Users/devfuretcompany/Documents/flutter/] git rev-parse --abbrev-ref HEAD [ +24 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +8 ms] executing: sw_vers -productName [ +17 ms] Exit code 0 from: sw_vers -productName [ ] macOS [ ] executing: sw_vers -productVersion [ +21 ms] Exit code 0 from: sw_vers -productVersion [ ] 12.2.1 [ ] executing: sw_vers -buildVersion [ +15 ms] Exit code 0 from: sw_vers -buildVersion [ ] 21D62 [ +61 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +48 ms] executing: /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb devices -l [ +17 ms] executing: sysctl hw.optional.arm64 [ +13 ms] Exit code 0 from: sysctl hw.optional.arm64 [ ] hw.optional.arm64: 1 [ ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version [ +89 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version [ ] Xcode 13.3 Build version 13E113 [ +3 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2 [ +4 ms] /usr/bin/arch -arm64e xcrun simctl list --json devices [ ] executing: /usr/bin/arch -arm64e xcrun simctl list --json devices [ +4 ms] executing: /usr/bin/arch -arm64e xcrun simctl list [ +72 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun simctl list [ +71 ms] /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb -s 8d9b713f shell getprop [ +110 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +169 ms] Skipping pub get: version match. [ +31 ms] Found plugin flutter_inappwebview at /Users/devfuretcompany/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ [ +42 ms] Found plugin flutter_inappwebview at /Users/devfuretcompany/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ [ +20 ms] Generating /Users/devfuretcompany/example_bug_webview/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +78 ms] ro.hardware = qcom [ +46 ms] Initializing file store [ +17 ms] Skipping target: gen_localizations [ +5 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/devfuretcompany/example_bug_webview/.dart_tool/package_config_subset} [ +9 ms] Found plugin flutter_inappwebview at /Users/devfuretcompany/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ [ +13 ms] gen_dart_plugin_registrant: Complete [ +1 ms] Skipping target: _composite [ +2 ms] complete [ +6 ms] Launching lib/main.dart on M2102J20SG in debug mode... [ +6 ms] /Users/devfuretcompany/Documents/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/devfuretcompany/Documents/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/devfuretcompany/Documents/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /var/folders/jw/x7xzrgxs23zbmv660g8yvl9c0000gn/T/flutter_tools.X6cqyY/flutter_tool.N0BoN8/app.dill --packages /Users/devfuretcompany/example_bug_webview/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy [ +12 ms] executing: /Users/devfuretcompany/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/devfuretcompany/example_bug_webview/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ +44 ms] Exit code 0 from: /Users/devfuretcompany/Library/Android/sdk/build-tools/33.0.0-rc1/aapt dump xmltree /Users/devfuretcompany/example_bug_webview/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12") A: package="com.example.example_bug_webview" (Raw: "com.example.example_bug_webview") A: platformBuildVersionCode=(type 0x10)0x1f A: platformBuildVersionName=(type 0x10)0xc E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x11 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: queries (line=16) E: intent (line=17) E: action (line=18) A: android:name(0x01010003)="android.support.customtabs.action.CustomTabsService" (Raw: "android.support.customtabs.action.CustomTabsService") E: application (line=22) A: android:label(0x01010001)="example_bug_webview" (Raw: "example_bug_webview") A: android:icon(0x01010002)=@0x7f0d0000 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=28) A: android:theme(0x01010000)=@0x7f0f00a3 A: android:name(0x01010003)="com.example.example_bug_webview.MainActivity" (Raw: "com.example.example_bug_webview.MainActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=43) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0f00a4 E: intent-filter (line=47) E: action (line=48) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=50) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=57) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: activity (line=61) A: android:theme(0x01010000)=@0x7f0f0005 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 E: activity (line=66) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=70) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=74) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: activity (line=79) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: receiver (line=85) A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver") A: android:enabled(0x0101000e)=(type 0x12)0xffffffff A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=90) A: android:name(0x01010003)="io.flutter.embedded_views_preview" (Raw: "io.flutter.embedded_views_preview") A: android:value(0x01010024)=(type 0x12)0xffffffff E: uses-library (line=94) A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions") A: android:required(0x0101028e)=(type 0x12)0x0 E: uses-library (line=97) A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar") A: android:required(0x0101028e)=(type 0x12)0x0 E: provider (line=101) A: android:name(0x01010003)="androidx.startup.InitializationProvider" (Raw: "androidx.startup.InitializationProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.example.example_bug_webview.androidx-startup" (Raw: "com.example.example_bug_webview.androidx-startup") E: meta-data (line=105) A: android:name(0x01010003)="androidx.emoji2.text.EmojiCompatInitializer" (Raw: "androidx.emoji2.text.EmojiCompatInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") E: meta-data (line=108) A: android:name(0x01010003)="androidx.lifecycle.ProcessLifecycleInitializer" (Raw: "androidx.lifecycle.ProcessLifecycleInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") [ +25 ms] executing: /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb -s 8d9b713f shell -x logcat -v time -t 1 [ +40 ms] <- compile package:example_bug_webview/main.dart [ +269 ms] --------- beginning of main 05-17 16:13:33.502 I/SDM ( 1022): StrategyImpl::SetIdleTimeoutMs: Idle timeout: active = 70, inactive = 520 [ +21 ms] executing: /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb version [ +24 ms] Android Debug Bridge version 1.0.41 Version 33.0.0-8141338 Installed as /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb [ +3 ms] executing: /Users/devfuretcompany/Library/Android/sdk/platform-tools/adb start-server [ +28 ms] Building APK [ +33 ms] Running Gradle task 'assembleDebug'... [ +4 ms] Using gradle from /Users/devfuretcompany/example_bug_webview/android/gradlew. [ +88 ms] executing: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist [ +29 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o - /Applications/Android Studio.app/Contents/Info.plist [ ]https://user-images.githubusercontent.com/32543363/168830359-235c20f6-95c0-4849-968a-962a74aa571b.mp4