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.
This commit is contained in:
Michael Goderbauer 2017-06-06 14:07:53 -07:00 committed by GitHub
parent a5aaaa8422
commit 3a23419d84

View File

@ -867,6 +867,8 @@ class ScaffoldState extends State<Scaffold> 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,
)
));
}