feat: improve patient flow and pricing workflow
This commit is contained in:
@@ -188,8 +188,11 @@ class _InboundJobCardState extends State<_InboundJobCard> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final job = widget.job;
|
||||
final title = job.patientName?.trim().isNotEmpty == true
|
||||
? job.patientName!
|
||||
: job.patientCode;
|
||||
return Semantics(
|
||||
label: job.patientCode,
|
||||
label: title,
|
||||
button: true,
|
||||
excludeSemantics: true,
|
||||
child: Dismissible(
|
||||
@@ -246,9 +249,17 @@ class _InboundJobCardState extends State<_InboundJobCard> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
job.patientCode,
|
||||
title,
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
if (job.patientName?.isNotEmpty == true) ...[
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
job.patientCode,
|
||||
style: TextStyle(
|
||||
color: AppColors.textMuted, fontSize: 12),
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
job.clinicName ?? 'Klinik',
|
||||
@@ -259,7 +270,9 @@ class _InboundJobCardState extends State<_InboundJobCard> {
|
||||
Row(
|
||||
children: [
|
||||
_Chip(
|
||||
label: job.prostheticType.label,
|
||||
label: job.prostheticName?.isNotEmpty == true
|
||||
? '${job.prostheticType.label} · ${job.prostheticName}'
|
||||
: job.prostheticType.label,
|
||||
color: AppColors.inProgressBg,
|
||||
textColor: AppColors.inProgress,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user