I have page with cards, fill out cloud firestore:
child: StreamBuilder(
stream:
FirebaseFirestore.instance.collection('Items').snapshots(),
builder: (context, snapshot) {
if (!snapshot.hasData) return const Text('Loading...');
return GridView.count(
crossAxisCount: 2,
shrinkWrap: true,
mainAxisSpacing: 15.0,
crossAxisSpacing: 20.0,
childAspectRatio:
(SizeConfig.itemWidth / SizeConfig.itemHeight),
children: [
...List.generate(snapshot.data.docs.length, (index) {
return buildItemCard(
context, snapshot.data.docs[index]);
})
],
);
},
),
how to make the info from the card to another page (page with description) to be displayed by clicking on the card?