So here I have a problem, when I want to pass data using a url based on an index using the getx method,
Here I want when I click on the next page to take the url, for example, click "Dana" then go to the url "/danakonven", then it will appear according to the url direction
postman :: http://192.168.100.207:8080/konven

postman :: http://192.168.100.207:8080/danakonven

Here's the source code that I have on the first page,on the first page the on tap section, how about the contents so that the data can be sent
final ProductController productController = Get.put(ProductController());
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(AppString.productList),
),
body: Container(
child: Column(children: [
Obx(() {
if (productController.isLoading.value)
return Center(child: CircularProgressIndicator());
else
return Expanded(
child: ListView.builder(
itemCount: productController.productList.length,
itemBuilder: (context, index) {
return Column(
children: [
GestureDetector(
onTap: () {
// How can I retrieve data by url based on index
},
child: Card(
// color: Colors.blue[900],
elevation: 5,
margin: const EdgeInsets.all(10),
child: ListTile(
title: Text(
productController
.productList[index].kontenMenu,
style: (TextStyle(
fontSize: 20,
))))))
],
);
}));
})
])));
here I am confused to make a second page can you give an example for the second page command so that it can display from the first page