import 'package:discover_module/constants.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class MyWidget22 extends StatefulWidget { const MyWidget22({super.key}); @override State createState() => _MyWidget22State(); } class _MyWidget22State extends State { final List> cardData = [ {'id': 'ID ', 'number': 10, 'id1': "jjj", 'number1': '265'}, {'id': 'ID ', 'number': 20}, {'id': 'ID ', 'number': 30}, // Add more data entries as needed ]; @override Widget build(BuildContext context) { return Column( mainAxisSize: MainAxisSize.min, children: [ ListTile( title: Column( children: [ Row( mainAxisAlignment: MainAxisAlignment.end, children: [ Icon( Icons.edit, color: Constants.k2color, ) ], ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( cardData[0]['id'], style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), Text( cardData[0]['number'].toString(), style: TextStyle(fontSize: 16), ), ], ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( "Interaction Id", style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), Text( cardData[0]['number'].toString(), style: TextStyle(fontSize: 16), ), ], ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( "Therapeutic Area", style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), Text( cardData[0]['number'].toString(), style: TextStyle(fontSize: 16), ), ], ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( "Product", style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), ), Text( cardData[0]['number'].toString(), style: TextStyle(fontSize: 16), ), ], ), ], ), ), ], ); } }