import 'package:flutter/material.dart'; import 'package:rkm/utils/color_palette.dart'; import 'package:rkm/utils/const_variable.dart'; import 'package:rkm/widgets/text_default.dart'; class ItemCitizen extends StatelessWidget { String name; String date; String mother; String numberCNS; String numberMedicalRecord; var onTap; ItemCitizen({ required this.name, required this.date, required this.mother, required this.numberCNS, required this.numberMedicalRecord, required this.onTap }); @override Widget build(BuildContext context) { return Container( margin: ConstVariable().marginHightInput, child: Card( margin: ConstVariable().marginHightInput, color: ColorPalette.white, child: ListTile( title: TextDefault(text: name,fontWeigth: FontWeight.bold), subtitle: TextDefault(text: '$numberCNS - $numberMedicalRecord - $date - $mother',fontSize: 16), trailing: Icon(Icons.assignment_outlined), onTap: onTap, ), ), ); } }