update appointment display text
This commit is contained in:
@@ -30,25 +30,25 @@ class _BuildPatientsListState extends State<BuildAppointmentList> {
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
Widget displayQueue(int index) {
|
Widget displayQueue(int index) {
|
||||||
String title =
|
String title = widget.patientQueue[index].business_name.toUpperCase();
|
||||||
widget.patientQueue[index].date_time.split('T')[1].substring(0, 5);
|
// widget.patientQueue[index].date_time.split('T')[1].substring(0, 5);
|
||||||
String line234 = "";
|
String line234 = "";
|
||||||
// var nowDate = DateTime.now();
|
// var nowDate = DateTime.now();
|
||||||
// var expireyDate = DateTime.parse(widget.patientQueue[index].revoke_date);
|
// var expireyDate = DateTime.parse(widget.patientQueue[index].revoke_date);
|
||||||
|
|
||||||
line234 +=
|
line234 +=
|
||||||
"Office: ${widget.patientQueue[index].business_name.toUpperCase()}";
|
widget.patientQueue[index].date_time.split('T')[1].substring(0, 5);
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
"Time: $title",
|
title,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle: RichText(
|
subtitle: RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text: line234,
|
text: "Time: $line234",
|
||||||
style: DefaultTextStyle.of(context).style,
|
style: DefaultTextStyle.of(context).style,
|
||||||
// children: [
|
// children: [
|
||||||
// TextSpan(text: line5),
|
// TextSpan(text: line5),
|
||||||
|
|||||||
Reference in New Issue
Block a user