DiscoverModule/lib/ui_screen/view_insight.dart

95 lines
2.9 KiB
Dart
Raw Normal View History

2024-07-24 08:23:02 +00:00
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<MyWidget22> createState() => _MyWidget22State();
}
class _MyWidget22State extends State<MyWidget22> {
final List<Map<String, dynamic>> 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),
),
],
),
],
),
),
],
);
}
}