@@ -56,7 +56,8 @@ class _MailPageState extends State<MailPage> {
56
56
final GlobalKey _two = GlobalKey ();
57
57
final GlobalKey _three = GlobalKey ();
58
58
final GlobalKey _four = GlobalKey ();
59
- // final GlobalKey _five = GlobalKey();
59
+ final GlobalKey _five = GlobalKey ();
60
+ final GlobalKey twoWidgetKey = GlobalKey ();
60
61
List <Mail > mails = [];
61
62
62
63
final scrollController = ScrollController ();
@@ -308,10 +309,10 @@ class _MailPageState extends State<MailPage> {
308
309
physics: const BouncingScrollPhysics (),
309
310
itemBuilder: (context, index) {
310
311
if (index == 0 ) {
311
- return showcaseMailTile ([_three, _five ], true , context, mails.first);
312
+ return showcaseMailTile ([_three, twoWidgetKey ], true , context, mails.first);
312
313
}
313
314
return MailTile (
314
- key: index == 2 ? _five : null ,
315
+ key: index == 2 ? twoWidgetKey : null ,
315
316
mail: mails[index % mails.length],
316
317
);
317
318
},
@@ -599,8 +600,6 @@ class NewWidget extends StatelessWidget {
599
600
600
601
@override
601
602
Widget build (BuildContext context) {
602
- print (parentContext.widget.runtimeType.toString ());
603
- print (parentContext? .findAncestorWidgetOfExactType <MailTile >());
604
603
return Row (
605
604
children: [
606
605
GestureDetector (
0 commit comments