sick leave

merge-requests/197/head
Sultan Khan 5 years ago
parent 97d915ef99
commit 76e10459e0

@ -149,7 +149,8 @@ class _SickLeaveScreenState extends State<SickLeaveScreen> {
ignoring: true, ignoring: true,
child: DropdownButton( child: DropdownButton(
isExpanded: true, isExpanded: true,
value: getClinicName(model), value: getClinicName(model) ??
"",
iconSize: 40, iconSize: 40,
elevation: 16, elevation: 16,
selectedItemBuilder: selectedItemBuilder:

@ -97,7 +97,8 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
key: key, key: key,
patient: patient, patient: patient,
route: PATIENT_SICKLEAVE, route: PATIENT_SICKLEAVE,
name: TranslationBase.of(context).sickleave, nameLine1: TranslationBase.of(context).sickleave,
nameLine2: "",
icon: 'sick_leaves_icons.png')), icon: 'sick_leaves_icons.png')),
]); ]);
} }
@ -160,7 +161,12 @@ class PatientProfileButton extends StatelessWidget {
final PatiantInformtion patient; final PatiantInformtion patient;
final String url = "assets/images/"; final String url = "assets/images/";
PatientProfileButton( PatientProfileButton(
{Key key, this.patient, this.nameLine1, this.nameLine2, this.icon, this.route}) {Key key,
this.patient,
this.nameLine1,
this.nameLine2,
this.icon,
this.route})
: super(key: key); : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -174,18 +180,17 @@ class PatientProfileButton extends StatelessWidget {
Container( Container(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
padding: EdgeInsets.all(5), padding: EdgeInsets.all(5),
child: child: Column(
Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
AppText( AppText(
this.nameLine1, this.nameLine1,
color: Color(0xFFB9382C), color: Color(0xFFB9382C),
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
textAlign: TextAlign.left, textAlign: TextAlign.left,
fontSize: SizeConfig.textMultiplier * 2, fontSize: SizeConfig.textMultiplier * 2,
), ),
AppText( AppText(
this.nameLine2, this.nameLine2,
color: Colors.black, color: Colors.black,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,

Loading…
Cancel
Save