1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import 'package:flutter/cupertino.dart';
|
| class CardItem extends StatelessWidget {
| final String? title;
| final value;
|
| const CardItem({super.key, this.title, this.value});
|
| @override
| Widget build(BuildContext context) {
| return Row(
| crossAxisAlignment: CrossAxisAlignment.center,
| children: [
| Text(title! + ':',style: const TextStyle(fontSize: 16,fontWeight: FontWeight.bold)),
| SizedBox(width: 5),
| Expanded(
| child: Text(value?.toString() ?? '',style: const TextStyle(fontSize: 14),
| softWrap: true, overflow: TextOverflow.ellipsis, maxLines: 3),
| )
| ],
| );
| }
| }
|
|