r/FlutterDev • u/svprdga • Aug 14 '26
Discussion iOS jank with platform views (AdMob banners)
I recently ran into a problem affecting Flutter apps running on iPhones where platform views are present, typically AdMob banners (which are internally rendered through a platform view).
The jank is quite noticeable, and I've been able to confirm that the cause is the merging of the UI thread into the platform thread, introduced several releases ago.
I've opened this issue on GitHub where I'm discussing the problem with the Flutter team. I can reproduce it easily on two devices on my side, an iPhone 16 and an iPhone SE, but if you check the issue you'll see they're having a much harder time reproducing it on their devices.
Does any of you have a Flutter app on iOS with AdMob banners (or any other platform view) that could help us reproduce it? You can try it directly in your own app, or by cloning the repo I created, which is linked in the issue. Just commenting with your iPhone model, iOS version, and whether you see the jank or not would already help a lot.
Thanks!
1
u/gidrokolbaska Aug 14 '26
That's unfortunate... have you tried wrapping the listview inside the RepaintBoundary? It might help
1
u/DigiProductive Aug 14 '26
The root problem is thread contention introduced by Flutter’s merged UI/platform-thread architecture when native iOS views are embedded.
Your best bet is: if you use platform view, avoid pages that scroll; minimize page rebuilds, animations, deep layouts etc (anything expensive)
UiKit with scroll is going to jank pretty much unavoidable, but should improve if you avoid expensive UI rebuilds…