fix: status da visitas em aberto
This commit is contained in:
parent
ea18bee7c5
commit
55e42e1e31
|
@ -75,13 +75,16 @@ class VisitsModel extends FlutterFlowModel<VehicleOnTheProperty> {
|
|||
imagePath:
|
||||
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${devUUID}&cliID=${cliUUID}&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E',
|
||||
statusHashMap: [
|
||||
if (item['VTA_FIXA'] != null)
|
||||
Map<String, Color>.from({
|
||||
item['VTA_FIXA']
|
||||
? FFLocalizations.of(context).getVariableText(ptText: "Entrada Única", enText: "Single Entry")
|
||||
: FFLocalizations.of(context).getVariableText(
|
||||
ptText: "Entrada Recorrente", enText: "Recurrent Entry"): FlutterFlowTheme.of(context).warning
|
||||
}),
|
||||
]);
|
||||
Map<String, Color>.from({
|
||||
if (item['VTA_FIXA'] != null)
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: item['VTA_FIXA'] ? "Entrada Única" : "Entrada Recorrente",
|
||||
enText: item['VTA_FIXA'] ? "Single Entry" : "Recurrent Entry",
|
||||
): item['VTA_FIXA'] == true
|
||||
? FlutterFlowTheme.of(context).success
|
||||
: FlutterFlowTheme.of(context).warning,
|
||||
})
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -232,14 +232,14 @@ class _VisitsOnThePropertyState extends State<VisitsOnTheProperty> with TickerPr
|
|||
uItem['MOT_DESCRICAO'][0].toUpperCase() + uItem['MOT_DESCRICAO'].substring(1).toLowerCase(),
|
||||
},
|
||||
statusHashMap: [
|
||||
if (uItem['VTA_FIXA'] == true)
|
||||
if (uItem['VTA_FIXA'] == false)
|
||||
{
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Recorrente',
|
||||
enText: 'Recurrent',
|
||||
): FlutterFlowTheme.of(context).warning,
|
||||
},
|
||||
if (uItem['VTA_FIXA'] == false)
|
||||
if (uItem['VTA_FIXA'] == true)
|
||||
{
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Única',
|
||||
|
|
Loading…
Reference in New Issue