@ -117,7 +117,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
. . . incidentInfoSection ( ) ,
if ( incidentType ? . value = = 1 ) . . . [
16. height ,
" Asset Details " . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
" Asset Details " . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
AssetPicker (
device: device ,
@ -147,7 +147,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
16. height ,
. . . optionQuestions ( ) ,
16. height ,
" Attachments " . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
" Attachments " . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
AttachmentPicker (
label: context . translation . attachments ,
@ -181,7 +181,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
List < Widget > optionQuestions ( ) {
return [
' Additional Information & Comments ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
' Additional Information & Comments ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
AppTextFormField (
initialValue: " " ,
@ -202,7 +202,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
List < Widget > siteSection ( ) {
return [
' Site Details ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
' Site Details ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
SingleItemDropDownMenu < Site , SiteProvider > (
context: context ,
@ -330,7 +330,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
List < Widget > incidentInfoSection ( ) {
return [
" Incident Details " . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
" Incident Details " . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
SingleItemDropDownMenu < Lookup , IncidentTypeLookupProvider > (
context: context ,
@ -452,7 +452,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
if ( ( value ? ? " " ) . isEmpty ) return " Mandatory " ;
return null ;
} ,
suffixIcon: const Icon ( Icons . info_outline_rounded , color: AppColor . neutral120 ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
suffixIcon: Icon ( Icons . info_outline_rounded , color: AppColor . icon2Color( context ) ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
context . showInfoDialog ( " Brief explanation of the incident, e.g., “Damaged patient monitor screen“ " ) ;
} ) ,
style: Theme . of ( context ) . textTheme . titleMedium ,
@ -473,7 +473,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
if ( ( value ? ? " " ) . isEmpty ) return " Mandatory " ;
return null ;
} ,
suffixIcon: const Icon ( Icons . info_outline_rounded , color: AppColor . neutral120 ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
suffixIcon: Icon ( Icons . info_outline_rounded , color: AppColor . icon2Color( context ) ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
context . showInfoDialog (
" Provide a clear and factual description of the incident, including how the issue was identified. Ex. “The ECG cable connector was damaged due to continuos forcfull disconnetionnby end-users. Multiple bent pins were noted during inspection after repeated complains of poor signal quality“ " ) ;
} ) ,
@ -492,7 +492,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
List < Widget > detailsSection ( ) {
return [
' Details ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . black10 ) ,
' Details ' . addTranslation . bodyText ( context ) . custom ( color: AppColor . textStyleColor( context ) ) ,
8. height ,
SingleItemDropDownMenu < Lookup , IncidentRootCauseLookupProvider > (
context: context ,
@ -535,7 +535,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
return null ;
} ,
style: Theme . of ( context ) . textTheme . titleMedium ,
backgroundColor: AppColor . fieldBgColor ( context ) ,
/ / backgroundColor: AppColor . fieldBgColor ( context ) ,
labelStyle: AppTextStyles . textFieldLabelStyle . copyWith ( color: AppColor . textColor ( context ) ) ,
showShadow: false ,
textInputType: TextInputType . name ,
@ -559,7 +559,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
infoCallback: ( ) {
context . showInfoDialog ( " Ensure to provide information of person in Charge (e.g., Charge Nurse, Unit Team Leader), not a general staff member. " , content: [ ] ) ;
} ,
backgroundColor: AppColor . fieldBgColor ( context ) ,
/ / backgroundColor: AppColor . fieldBgColor ( context ) ,
showAsBottomSheet: true ,
onSelect: ( value ) {
involvedPerson = value ;
@ -592,7 +592,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
if ( involvedPerson ? . value = = 3 & & ( value ? ? " " ) . isEmpty ) return " Mandatory " ;
return null ;
} ,
suffixIcon: const Icon ( Icons . info_outline_rounded , color: AppColor . neutral120 ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
suffixIcon: Icon ( Icons . info_outline_rounded , color: AppColor . icon2Color( context ) ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
context . showInfoDialog (
" Required if the person is an Employee. Ensure the correct Employee ID of the Person in Charge (e.g., Charge Nurse, Unit Team Leader) is provided, not a general staff member. (Ex. 34567) " ) ;
} ) ,
@ -614,7 +614,7 @@ class _CreateIncidentRequestPageState extends State<CreateIncidentRequestPage> {
if ( involvedPerson ? . value = = 3 & & ( value ? ? " " ) . isEmpty ) return " Mandatory " ;
return null ;
} ,
suffixIcon: const Icon ( Icons . info_outline_rounded , color: AppColor . neutral120 ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
suffixIcon: Icon ( Icons . info_outline_rounded , color: AppColor . icon2Color( context ) ) . paddingOnly ( end: 8 ) . onPress ( ( ) {
context . showInfoDialog ( " State the end-user Employee/Patient Full name. Required if the person is an Employee. (Ex. Mary-Anne Joseph) " ) ;
} ) ,
style: Theme . of ( context ) . textTheme . titleMedium ,