|
|
|
|
@ -10,6 +10,7 @@ class SoapDetailItem extends StatelessWidget {
|
|
|
|
|
final String condition;
|
|
|
|
|
final String status;
|
|
|
|
|
final String remarks;
|
|
|
|
|
final String? type;
|
|
|
|
|
final bool showActions;
|
|
|
|
|
final OnSoapDetailActionClicked onSoapDetailActionClicked;
|
|
|
|
|
|
|
|
|
|
@ -20,6 +21,7 @@ class SoapDetailItem extends StatelessWidget {
|
|
|
|
|
required this.remarks,
|
|
|
|
|
required this.onSoapDetailActionClicked,
|
|
|
|
|
required this.status,
|
|
|
|
|
this.type,
|
|
|
|
|
this.showActions = true});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -61,6 +63,28 @@ class SoapDetailItem extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: type?.isNotEmpty == true,
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).diagnoseType}:",
|
|
|
|
|
color: Color(0XFF2B353E),
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 4,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
type ?? '',
|
|
|
|
|
color: Color(0xff359846),
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Visibility(
|
|
|
|
|
visible: remarks.isNotEmpty,
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -180,14 +204,16 @@ class Status extends StatelessWidget {
|
|
|
|
|
borderRadius: BorderRadius.circular(3),
|
|
|
|
|
),
|
|
|
|
|
// color: Color(0xFF359846),
|
|
|
|
|
color: (status.toLowerCase() == 'active' || status.toLowerCase() == 'stable')
|
|
|
|
|
color: (status.toLowerCase() == 'active' ||
|
|
|
|
|
status.toLowerCase() == 'stable')
|
|
|
|
|
? Color(0xFFD8E8DB)
|
|
|
|
|
: Color(0x98d02127),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
|
|
|
|
|
child: AppText(
|
|
|
|
|
status,
|
|
|
|
|
color: (status.toLowerCase() == 'active' || status.toLowerCase() == 'stable')
|
|
|
|
|
color: (status.toLowerCase() == 'active' ||
|
|
|
|
|
status.toLowerCase() == 'stable')
|
|
|
|
|
? Color(0xFF359846)
|
|
|
|
|
: Colors.white,
|
|
|
|
|
fontSize: 8,
|
|
|
|
|
@ -197,4 +223,4 @@ class Status extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum SoapDetailItemActions { EDIT, RESOLVE, AUDIT, REMOVE,CHANGE_STATUS }
|
|
|
|
|
enum SoapDetailItemActions { EDIT, RESOLVE, AUDIT, REMOVE, CHANGE_STATUS }
|
|
|
|
|
|