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,83 +186,77 @@ 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( readOnly: true,
horizontal: MediaQuery.of(context).size.width * 0.02, initialValue: '$value',
vertical: MediaQuery.of(context).size.height * 0.01, style: FlutterFlowTheme.of(context).bodyMedium.override(
), fontFamily:
child: TextFormField( FlutterFlowTheme.of(context).bodyMediumFamily,
readOnly: true, color: FlutterFlowTheme.of(context).primaryText,
initialValue: '$value', letterSpacing: 0.0,
style: FlutterFlowTheme.of(context).bodyMedium.override( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily,
),
),
decoration: InputDecoration(
labelText: key,
filled: true,
fillColor: FlutterFlowTheme.of(context).primaryBackground,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.primaryBackground, // Change border color here
),
),
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: fontFamily:
FlutterFlowTheme.of(context).bodyMediumFamily, FlutterFlowTheme.of(context).labelMediumFamily,
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily, FlutterFlowTheme.of(context).labelMediumFamily,
), ),
), ),
decoration: InputDecoration( hintStyle: FlutterFlowTheme.of(context)
labelText: key, .labelMedium
filled: true, .override(
fillColor: FlutterFlowTheme.of(context).primaryBackground, fontFamily:
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.primaryBackground, // Change border color here
),
),
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
FlutterFlowTheme.of(context).labelMediumFamily,
color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily, FlutterFlowTheme.of(context).labelMediumFamily,
), color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily,
), ),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
FlutterFlowTheme.of(context).labelMediumFamily,
color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily,
),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.primaryBackground, // Change border color here
), ),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(10.0),
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.primaryBackground, // Change border color here
), ),
focusedBorder: OutlineInputBorder( ),
borderRadius: BorderRadius.circular(10.0), focusedBorder: OutlineInputBorder(
borderSide: BorderSide( borderRadius: BorderRadius.circular(10.0),
color: FlutterFlowTheme.of(context) borderSide: BorderSide(
.primaryBackground, // Change border color here color: FlutterFlowTheme.of(context)
), .primaryBackground, // Change border color here
), ),
errorBorder: OutlineInputBorder( ),
borderRadius: BorderRadius.circular(10.0), errorBorder: OutlineInputBorder(
borderSide: BorderSide( borderRadius: BorderRadius.circular(10.0),
color: FlutterFlowTheme.of(context) borderSide: BorderSide(
.primaryBackground, // Change border color here color: FlutterFlowTheme.of(context)
), .primaryBackground, // Change border color here
), ),
focusedErrorBorder: OutlineInputBorder( ),
borderRadius: BorderRadius.circular(10.0), focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide( borderRadius: BorderRadius.circular(10.0),
color: FlutterFlowTheme.of(context) borderSide: BorderSide(
.primaryBackground, // Change border color here color: FlutterFlowTheme.of(context)
), .primaryBackground, // Change border color here
), ),
), ),
), ),
@ -270,13 +264,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, ),
),
], ],
), ),
), ),