Urgent: I want to navigate to another screens from the Grid Flat Icons.Please Guide

This Question is posted by shravan_pottala at 9/5/2020 8:30:50 AM

I am unable to keep a navigation event using container like Container( color: Colors.cyan[100], child: GestureDetector ( onTap:(){ Navigator.of(context).push(MaterialPageRoute(builder:(context)=>MobileAccessoriesPage(), ), ); }, child: Center (child:Text ('Mobiles'),icon: Icons.mobile_screen_share), ), ), How to use container at const List choices = const [ const Choice(title: 'Car', icon: Icons.directions_car), const Choice(title: 'Bicycle', icon: Icons.directions_bike), const Choice(title: 'Boat', icon: Icons.directions_boat), const Choice(title: 'Bus', icon: Icons.directions_bus), ]

Tags:



1 Comments
Login to comment.
Recent Comments

seven.srikanth at 9/5/2020

wrap container inside gesturedetector. Widget tree should be gesturedetector -> Container -> Center ... and so on.

Login to Reply.





© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com