Commit 3a23419d authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Hide the Scaffold's scroll-to-top button from accessibility (#10539)

It's redundant as iOS accessibility automatically includes this action on the clock in the status bar.
parent a5aaaa84
...@@ -867,6 +867,8 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin { ...@@ -867,6 +867,8 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
child: new GestureDetector( child: new GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: _handleStatusBarTap, onTap: _handleStatusBarTap,
// iOS accessibility automatically adds scroll-to-top to the clock in the status bar
excludeFromSemantics: true,
) )
)); ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment