Unverified Commit 84dbef39 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

add route semantics to backdrop widget (#16981)

parent 61de5014
...@@ -107,14 +107,22 @@ class _CrossFadeTransition extends AnimatedWidget { ...@@ -107,14 +107,22 @@ class _CrossFadeTransition extends AnimatedWidget {
ignoring: opacity1 < 1.0, ignoring: opacity1 < 1.0,
child: new Opacity( child: new Opacity(
opacity: opacity1, opacity: opacity1,
child: child1, child: new Semantics(
scopesRoute: true,
explicitChildNodes: true,
child: child1,
),
), ),
), ),
new IgnorePointer( new IgnorePointer(
ignoring: opacity2 <1.0, ignoring: opacity2 <1.0,
child: new Opacity( child: new Opacity(
opacity: opacity2, opacity: opacity2,
child: child0, child: new Semantics(
scopesRoute: true,
explicitChildNodes: true,
child: child0,
),
), ),
), ),
], ],
...@@ -261,8 +269,8 @@ class _BackdropState extends State<Backdrop> with SingleTickerProviderStateMixin ...@@ -261,8 +269,8 @@ class _BackdropState extends State<Backdrop> with SingleTickerProviderStateMixin
title: new _CrossFadeTransition( title: new _CrossFadeTransition(
progress: _controller, progress: _controller,
alignment: AlignmentDirectional.centerStart, alignment: AlignmentDirectional.centerStart,
child0: widget.frontTitle, child0: new Semantics(namesRoute: true, child: widget.frontTitle),
child1: widget.backTitle, child1: new Semantics(namesRoute: true, child: widget.backTitle),
), ),
trailing: new IconButton( trailing: new IconButton(
onPressed: _toggleFrontLayer, onPressed: _toggleFrontLayer,
......
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