From 3a23419d8440923384a16c11fe687d3b59091027 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Tue, 6 Jun 2017 14:07:53 -0700 Subject: [PATCH] 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. --- packages/flutter/lib/src/material/scaffold.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 72ab0f7a8d..5a337d52a3 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -867,6 +867,8 @@ class ScaffoldState extends State with TickerProviderStateMixin { child: new GestureDetector( behavior: HitTestBehavior.opaque, onTap: _handleStatusBarTap, + // iOS accessibility automatically adds scroll-to-top to the clock in the status bar + excludeFromSemantics: true, ) )); }