|
|
|
|
@ -141,24 +141,29 @@ class PatientProfileScreen extends StatelessWidget {
|
|
|
|
|
if (patient.episodeNo != 0)
|
|
|
|
|
BorderedButton(
|
|
|
|
|
"${TranslationBase.of(context).update}\n${TranslationBase.of(context).episode}",
|
|
|
|
|
backgroundColor: Colors.red.shade700,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
vPadding: 8,
|
|
|
|
|
radius: 30,
|
|
|
|
|
hPadding: 20,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
icon: Image.asset(
|
|
|
|
|
"assets/images/modilfy-episode.png",
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 30,
|
|
|
|
|
backgroundColor:
|
|
|
|
|
patient.patientStatusType == 43
|
|
|
|
|
? Colors.red.shade700
|
|
|
|
|
: Colors.grey.shade700,
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
vPadding: 8,
|
|
|
|
|
radius: 30,
|
|
|
|
|
hPadding: 20,
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
icon: Image.asset(
|
|
|
|
|
"assets/images/modilfy-episode.png",
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
handler: () {
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
UPDATE_EPISODE,
|
|
|
|
|
arguments: {'patient': patient});
|
|
|
|
|
},
|
|
|
|
|
if (patient.patientStatusType == 43) {
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
UPDATE_EPISODE,
|
|
|
|
|
arguments: {'patient': patient});
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|