-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Steps to reproduce
Unfortunately I am not able to reproduce this Problem in a clean example project.
It appears that there is a complex relationship between all the components at play.
A big native View covering the entire Background (here the Map seen in the Background), multiple layers of Dart Widgets, including Navigators, Scrollviews and Listviews. And finally a native UiKitView within a Scrollable Dart Widget.
The problem is, that the native UiKitView is rendered on top of dart Widgets, which should actually clip the UiKitView.
Since the problem started occurring when I recently updated to Flutter 3.24 I rolled back my Flutter to 3.19.1 for the time being.
I am sure that having no reproducable code makes this nearly Impossible to debug and fix. So instead I tried locating the actual change that introduced this behaviour in the first place.
After checking dozens of Flutter Versions I have noticed the Problem first occured in 3.23.0-13.0.pre and further broke it down to Commits within this Version.
I found, that the Problem was first introduced with commit dccc26a28a.
Any older state (e.g. the one just before that 2a127cbdf8) clips the UiKitView as expected.
Now looking at said commit, it shows a different revision of the flutter engine, which is where my current investigation came to a halt.
I know that having no reproducable code to check this out is difficult, but maybe there is some obvious change that has happened in the engine at that time that would give it away? Or at least lead someone to being able to reproduce this issue in the first place?
Expected results
The UiKitView is clipped below the dart Widget. 2a127cbdf8
RPReplay_Final1725438683.MP4
Actual results
The UiKitView is rendered on top of the dart Widget. dccc26a28a
RPReplay_Final1725435123.2.MP4
Code sample
The Videos showing both behaviours are recorded using an identical App. The only difference is the underlying Flutter Version used to build the App.