Merge branch 'feat/fd-1023' into feat/fd-1035
This commit is contained in:
commit
d560f09338
|
@ -79,7 +79,7 @@ class _CardItemTemplateComponentWidgetState extends State<CardItemTemplateCompon
|
|||
Expanded(
|
||||
child: Text(
|
||||
text,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
overflow: TextOverflow.fade,
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||
fontSize: limitedBodyTextSize,
|
||||
|
@ -171,10 +171,7 @@ class _CardItemTemplateComponentWidgetState extends State<CardItemTemplateCompon
|
|||
runSpacing: 4,
|
||||
children: _generateStatus(),
|
||||
),
|
||||
]
|
||||
.addToEnd(const SizedBox(height: 5))
|
||||
.divide(const SizedBox(height: 1))
|
||||
.addToStart(const SizedBox(height: 5)),
|
||||
].addToEnd(const SizedBox(height: 5)).divide(const SizedBox(height: 1)).addToStart(const SizedBox(height: 5)),
|
||||
),
|
||||
),
|
||||
if (widget.imagePath != null) _generateImage(),
|
||||
|
|
|
@ -347,10 +347,29 @@ class ProvisionalHistoryState extends State<ProvisionalHistoryPage> {
|
|||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Data:',
|
||||
enText: 'Data:',
|
||||
): historyItem['AGP_DT_VISITA'] ?? '',
|
||||
): formatDate(historyItem['AGP_DT_VISITA']),
|
||||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Observação:',
|
||||
enText: 'Observation:',
|
||||
): formatObs(historyItem['AGP_OBSERVACAO']),
|
||||
};
|
||||
}
|
||||
|
||||
String formatObs(String? obs) {
|
||||
if (obs == null || obs.isEmpty) {
|
||||
return FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Observação não informada',
|
||||
enText: 'No observation provided',
|
||||
);
|
||||
}
|
||||
return obs;
|
||||
}
|
||||
|
||||
String formatDate(String dateString) {
|
||||
DateTime dateTime = DateTime.parse(dateString);
|
||||
return "${dateTime.day.toString().padLeft(2, '0')}/${dateTime.month.toString().padLeft(2, '0')}/${dateTime.year} ${dateTime.hour.toString().padLeft(2, '0')}:${dateTime.minute.toString().padLeft(2, '0')}";
|
||||
}
|
||||
|
||||
List<Map<String, Color>> _buildStatusHashMap(BuildContext context, dynamic historyItem) {
|
||||
return [
|
||||
{
|
||||
|
@ -377,7 +396,7 @@ class ProvisionalHistoryState extends State<ProvisionalHistoryPage> {
|
|||
FFLocalizations.of(context).getVariableText(
|
||||
ptText: 'Convidado',
|
||||
enText: 'Called',
|
||||
): FlutterFlowTheme.of(context).alternate2,
|
||||
): Colors.blue,
|
||||
};
|
||||
case 'IN':
|
||||
return {
|
||||
|
|
|
@ -161,7 +161,7 @@ class _FilterWidgetState extends State<FilterWidget> {
|
|||
return Center(
|
||||
child: Container(
|
||||
width: screenWidth - (screenWidth * 0.35),
|
||||
height: screenWidth - (screenWidth * 0.25),
|
||||
height: screenWidth,
|
||||
decoration: BoxDecoration(
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
borderRadius: BorderRadius.circular(24.0),
|
||||
|
|
Loading…
Reference in New Issue