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:
|
imagePath:
|
||||||
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${devUUID}&cliID=${cliUUID}&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E',
|
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${devUUID}&cliID=${cliUUID}&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E',
|
||||||
statusHashMap: [
|
statusHashMap: [
|
||||||
if (item['VTA_FIXA'] != null)
|
Map<String, Color>.from({
|
||||||
Map<String, Color>.from({
|
if (item['VTA_FIXA'] != null)
|
||||||
item['VTA_FIXA']
|
FFLocalizations.of(context).getVariableText(
|
||||||
? FFLocalizations.of(context).getVariableText(ptText: "Entrada Única", enText: "Single Entry")
|
ptText: item['VTA_FIXA'] ? "Entrada Única" : "Entrada Recorrente",
|
||||||
: FFLocalizations.of(context).getVariableText(
|
enText: item['VTA_FIXA'] ? "Single Entry" : "Recurrent Entry",
|
||||||
ptText: "Entrada Recorrente", enText: "Recurrent Entry"): FlutterFlowTheme.of(context).warning
|
): 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(),
|
uItem['MOT_DESCRICAO'][0].toUpperCase() + uItem['MOT_DESCRICAO'].substring(1).toLowerCase(),
|
||||||
},
|
},
|
||||||
statusHashMap: [
|
statusHashMap: [
|
||||||
if (uItem['VTA_FIXA'] == true)
|
if (uItem['VTA_FIXA'] == false)
|
||||||
{
|
{
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Recorrente',
|
ptText: 'Recorrente',
|
||||||
enText: 'Recurrent',
|
enText: 'Recurrent',
|
||||||
): FlutterFlowTheme.of(context).warning,
|
): FlutterFlowTheme.of(context).warning,
|
||||||
},
|
},
|
||||||
if (uItem['VTA_FIXA'] == false)
|
if (uItem['VTA_FIXA'] == true)
|
||||||
{
|
{
|
||||||
FFLocalizations.of(context).getVariableText(
|
FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Única',
|
ptText: 'Única',
|
||||||
|
|
Loading…
Reference in New Issue