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