Tiny a11y fix for Gallery (#11187)
This commit is contained in:
parent
f2809423cd
commit
cb35a1c728
@ -31,18 +31,20 @@ class GalleryItem extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return new ListTile(
|
return new MergeSemantics(
|
||||||
title: new Text(title),
|
child: new ListTile(
|
||||||
subtitle: new Text(subtitle),
|
title: new Text(title),
|
||||||
onTap: () {
|
subtitle: new Text(subtitle),
|
||||||
if (routeName != null) {
|
onTap: () {
|
||||||
Timeline.instantSync('Start Transition', arguments: <String, String>{
|
if (routeName != null) {
|
||||||
'from': '/',
|
Timeline.instantSync('Start Transition', arguments: <String, String>{
|
||||||
'to': routeName
|
'from': '/',
|
||||||
});
|
'to': routeName
|
||||||
Navigator.pushNamed(context, routeName);
|
});
|
||||||
|
Navigator.pushNamed(context, routeName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user