This commit is contained in:
jantunesmesias 2024-08-09 13:12:24 -03:00
parent 72f44dd41b
commit 711b027890
1 changed files with 67 additions and 74 deletions

View File

@ -96,7 +96,7 @@ class _VisitRequestTemplateComponentWidgetState
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
SizedBox(height: MediaQuery.of(context).size.height * 0.02), SizedBox(height: MediaQuery.of(context).size.height * 0.03),
Row( Row(
children: statusLinkedHashMap.expand((linkedHashMap) { children: statusLinkedHashMap.expand((linkedHashMap) {
return linkedHashMap.entries return linkedHashMap.entries
@ -177,7 +177,7 @@ class _VisitRequestTemplateComponentWidgetState
}).toList(); }).toList();
}).toList(), }).toList(),
), ),
SizedBox(height: MediaQuery.of(context).size.height * 0.02), SizedBox(height: MediaQuery.of(context).size.height * 0.03),
ListView.builder( ListView.builder(
shrinkWrap: true, shrinkWrap: true,
itemCount: labelsLinkedHashMap.length, itemCount: labelsLinkedHashMap.length,
@ -186,12 +186,7 @@ class _VisitRequestTemplateComponentWidgetState
String key = labelsLinkedHashMap.keys.elementAt(index); String key = labelsLinkedHashMap.keys.elementAt(index);
String value = labelsLinkedHashMap[key]!; String value = labelsLinkedHashMap[key]!;
// return Text('key: $key, value: $value'); // return Text('key: $key, value: $value');
return Padding( return TextFormField(
padding: EdgeInsets.symmetric(
horizontal: MediaQuery.of(context).size.width * 0.02,
vertical: MediaQuery.of(context).size.height * 0.01,
),
child: TextFormField(
readOnly: true, readOnly: true,
initialValue: '$value', initialValue: '$value',
style: FlutterFlowTheme.of(context).bodyMedium.override( style: FlutterFlowTheme.of(context).bodyMedium.override(
@ -265,14 +260,12 @@ class _VisitRequestTemplateComponentWidgetState
), ),
), ),
), ),
),
); );
}, },
), ),
SizedBox(height: MediaQuery.of(context).size.height * 0.02), SizedBox(height: MediaQuery.of(context).size.height * 0.02),
if (widget.buttons.isNotEmpty) if (widget.buttons
const SizedBox( .isNotEmpty) // Adicione este SizedBox com a altura desejada
height: 16), // Adicione este SizedBox com a altura desejada
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: widget.buttons, children: widget.buttons,