I have 5 texts in a row, all text is wrapped inside Inkwell, I want the selected text to send to the next page in the flutter, if not selected it should show the select value in a snack bar
Padding(
padding: const EdgeInsets.only(left: 5, right: 5),
child: Container(
decoration: BoxDecoration(
color: variantList[i] == variantList[i]['varient_color1']
? Colors.grey[100]
: Colors.white,
border: Border.all(
color: Colors.blueGrey,
style: BorderStyle.solid,
width: 1.0,
),
borderRadius: BorderRadius.circular(3.0),
),
child: InkWell(
child: Text(" ${variantList[i]['varient_color1']} "),
onTap: () {},
)
),
),
you can do like this.
NavigationDemo.dart
DemoText.dart
This is just example you can refer this.