Repository navigation
Description
Steps to reproduce
- Run the code sample below on an iOS 26 simulator or device (tested: iPhone 17 simulator, Flutter 3.47.1 stable, Impeller). It pushes a page whose scrollable has an orange box under the status bar and scrolls it by 150pt.
- Look at the top ~60pt of the screen, or take a device screenshot (
xcrun simctl io booted screenshot out.png). - Optional: hold a back-swipe part-way. The rounded page corner shows the same smear outside the arc.
Expected results
The content under the status bar looks the way Flutter rendered it: a sharp orange edge, then white.
Actual results
iOS paints a scroll-edge effect over the status-bar band: a vertical blur plus a light wash of whatever Flutter drew there. The orange fades down through the band instead of ending sharply. During an interactive pop the page's colour is smeared outside the rounded corner clip for the duration of the gesture.
The effect only appears once the Dart scrollable has scrolled. Hiding the status bar (SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [])) removes it. It never appears in Flutter's own pixel readback (RenderRepaintBoundary.toImage), so widget and integration tests cannot see it. It is composited by UIKit above the Flutter layer.
Cause. iOS 26 attaches its scroll-edge effect to any UIScrollView under the status bar whose content offset is non-zero. The iOS embedder keeps two such views under FlutterView, neither of which draws anything:
- the scroll-to-top helper created in
-[FlutterViewController loadView], held at a non-zerocontentOffsetso a status-bar tap deliversscrollViewShouldScrollToTop:; - a full-screen
FlutterSemanticsScrollViewper scrollable semantics node, whosecontentOffsetmirrors the Dart scroll position for assistive technology.
The second produces the visible band. A dump of the window while the sample page was scrolled:
UIScrollView in FlutterView contentOffset.y=2 topEdgeEffect.hidden=NO frame=0+0
FlutterSemanticsScrollView in FlutterView contentOffset.y=141 topEdgeEffect.hidden=NO frame=0+874
Confirmed with a plain UIKit app on the same simulator: a coloured UIView under the status bar shows no band; adding an empty transparent UIScrollView at contentOffset.y = 40 on top of it reproduces the band exactly; scrollView.topEdgeEffect.hidden = YES removes it.
Workaround. From the app's SceneDelegate, hook -[FlutterSemanticsScrollView didMoveToWindow] with the ObjC runtime and set topEdgeEffect.hidden = YES on each instance, plus a one-off walk of FlutterView's scroll-view children. It works, but it swizzles a private engine class by name.
Proposed fix. Hide topEdgeEffect and bottomEdgeEffect on both helper views on iOS 26, in FlutterSemanticsScrollView's initializer and in -[FlutterViewController loadView], behind an availability check and an SDK guard. PR to follow.
Code sample
Code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(const ProbeApp());
class ProbeApp extends StatelessWidget {
const ProbeApp({super.key});
@override
Widget build(BuildContext context) => CupertinoApp(
debugShowCheckedModeBanner: false,
builder: (context, child) => ColoredBox(color: Colors.white, child: child!),
home: const Home(),
);
}
class Home extends StatefulWidget {
const Home({super.key});
@override
State<Home> createState() => _HomeState();
}
class _HomeState extends State<Home> {
@override
void initState() {
super.initState();
Future<void>.delayed(const Duration(milliseconds: 600), () {
if (!mounted) return;
Navigator.of(context).push(
CupertinoPageRoute<void>(builder: (_) => const Page()),
);
});
}
@override
Widget build(BuildContext context) =>
const ColoredBox(color: Colors.white, child: SizedBox.expand());
}
class Page extends StatefulWidget {
const Page({super.key});
@override
State<Page> createState() => _PageState();
}
class _PageState extends State<Page> {
final _controller = ScrollController();
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
if (_controller.hasClients) _controller.jumpTo(150);
});
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) => Scaffold(
backgroundColor: Colors.white,
body: CustomScrollView(
controller: _controller,
slivers: const [
SliverToBoxAdapter(
child: SizedBox(
height: 320,
child: ColoredBox(color: Color(0xFFE08020)),
),
),
SliverToBoxAdapter(child: SizedBox(height: 2000)),
],
),
);
}Screenshots or Video
Screenshots / Video demonstration
Same page, same 150pt scroll; the orange box ends at 20pt in every column. Top 120pt of the screen.
| Flutter, status bar shown | Flutter, status bar hidden | Native UIKit, plain view | Native UIKit, plus an empty UIScrollView at contentOffset.y = 40 |
Same scroll view, topEdgeEffect.isHidden = true |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
The native columns are a plain UIKit app with the same orange strip under the status bar and, for the last two, this on top of it:
let sv = UIScrollView(frame: view.bounds)
sv.contentSize = CGSize(width: view.bounds.width, height: view.bounds.height * 3)
sv.contentOffset = CGPoint(x: 0, y: 40)
sv.backgroundColor = .clear
sv.topEdgeEffect.isHidden = true // last column only
view.addSubview(sv)Held back-swipe on a CupertinoPageRoute with a rounded-corner page clip. Outside the arc should be the route beneath; instead the page's colour is smeared through the band.
| Before | After (edge effect hidden on Flutter's scroll views) |
|---|---|
![]() |
![]() |
Logs
Logs
No Flutter-side output; the effect is drawn by UIKit. The window dump above was taken with a debug timer in the app's SceneDelegate walking window.subviews for UIScrollView instances.
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.47.1, on macOS 27.0 26A5406e darwin-arm64)
• Framework revision 6655482ec0 (2026-08-19)
• Engine revision 5d53178869
• Dart version 3.13.1
[✓] Xcode - develop for iOS and macOS (Xcode 27.0, Build 27A5237l)







Activity
mbcorona commentedon Sep 7, 2026
Hi @JakeThomson ,. thanks for the detailed and complete report. Routing to the iOS team to evaluate issue and PR linked #192374
jasonguppy commentedon Nov 9, 2026
Seeing this on a physical device too, with one more detail that may help the fix in #192374.
Setup: iPhone with a 3x screen (402pt wide), Flutter 3.47.5 stable, Impeller, release build, Xcode 27.2 (and also on a TestFlight build made by Xcode Cloud).
Extra detail: the
FlutterSemanticsScrollViewframes are a third of their real size. On the device, the semantics scroll views were not full-screen. A dump of the window:134 = 402 / 3. To make the views visible, we gave every scroll view under
FlutterViewa translucent background. The page's list, a horizontal chip row, and the title area then showed as boxes at a third of their size, in the top-left corner, starting just under the status bar. So the edge effect's band sits at those shrunken views' tops, and it moves at a third of the scroll speed.When it appears: for us, the views (and the band) appeared after opening a
MenuAnchoron that page. The device had no screen reader on, and turning Guided Access off made no difference.Our workaround matches yours: swap
didMoveToWindowonUIScrollView, and hide all four edge effects when the superview is aFlutterView. The band is gone on the device.The frame scaling looks like a separate bug from the edge effect: the semantics rects seem to be applied in physical pixels and then divided by the device pixel ratio once too often. Hiding the effect fixes what users see, but VoiceOver hit-testing of those views may also be off.
[iOS] Hide UIScrollEdgeEffect on FlutterSemanticsScrollView and scrol…