feat: Update image URL for liberation history item
This commit is contained in:
parent
e8cdcda824
commit
3ead866739
File diff suppressed because one or more lines are too long
|
@ -372,6 +372,7 @@ class NotificationHandler {
|
|||
vteDocument: message['documento'],
|
||||
vteUUID: message['idVisitante'].toString(),
|
||||
vawRef: message['referencia'].toString(),
|
||||
vawStatus: 'S',
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
|
@ -125,7 +125,8 @@ class _VisitRequestTemplateComponentWidgetState
|
|||
fadeInDuration: const Duration(milliseconds: 100),
|
||||
fadeOutDuration: const Duration(milliseconds: 100),
|
||||
imageUrl: valueOrDefault<String>(
|
||||
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.vteDocument}&tipo=E',
|
||||
// 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.vteDocument}&tipo=E',
|
||||
'https://freaccess.com.br/freaccess/getImage.php?cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.vteDocument != null ? widget.vteDocument : widget.vteUUID}&tipo=E',
|
||||
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
||||
),
|
||||
fit: BoxFit.cover,
|
||||
|
@ -533,8 +534,8 @@ class _VisitRequestTemplateComponentWidgetState
|
|||
),
|
||||
if (widget.vawStatus != 'S')
|
||||
Padding(
|
||||
padding:
|
||||
const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
24.0, 0.0, 24.0, 0.0),
|
||||
child: TextFormField(
|
||||
controller: _model.textController4,
|
||||
focusNode: _model.textFieldFocusNode4,
|
||||
|
|
|
@ -289,7 +289,23 @@ Widget liberationHistoryItemCard(
|
|||
useSafeArea: true,
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return const VisitRequestTemplateComponentWidget();
|
||||
return VisitRequestTemplateComponentWidget(
|
||||
vteName: liberationHistoryItem['VTE_NOME'],
|
||||
vteReason: liberationHistoryItem['NOT_MOTIVO'],
|
||||
vawDate: liberationHistoryItem['NOT_STATUS'] == 'S'
|
||||
? liberationHistoryItem['NOT_DTENVIO']
|
||||
: liberationHistoryItem['NOT_DTRESPOSTA'],
|
||||
vawStatus: liberationHistoryItem['NOT_STATUS'],
|
||||
vteMsg: liberationHistoryItem['NOT_MSGENVIO'],
|
||||
vteUUID: liberationHistoryItem['VTE_ID'],
|
||||
cliUUID: '',
|
||||
msgUUID: '',
|
||||
vawDestino: '',
|
||||
vawUUID: '',
|
||||
vawName: '',
|
||||
vawRef: '',
|
||||
vteDocument: '',
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue