diff --git a/lib/components/templates_components/details_component/details_component_widget.dart b/lib/components/templates_components/details_component/details_component_widget.dart index 1a73a649..01c05798 100644 --- a/lib/components/templates_components/details_component/details_component_widget.dart +++ b/lib/components/templates_components/details_component/details_component_widget.dart @@ -12,7 +12,7 @@ class DetailsComponentWidget extends StatefulWidget { Key? key, required this.labelsHashMap, required this.statusHashMap, - required this.imagePath, + this.imagePath, this.onTapCardItemAction, required this.buttons, }); @@ -74,7 +74,7 @@ class _DetailsComponentWidgetState extends State { mainAxisAlignment: MainAxisAlignment.start, children: [ SizedBox(height: MediaQuery.of(context).size.height * 0.02), - Container( + if(widget.imagePath != null) Container( width: MediaQuery.of(context).size.width * 0.3, height: MediaQuery.of(context).size.width * 0.3, clipBehavior: Clip.antiAlias, @@ -89,6 +89,7 @@ class _DetailsComponentWidgetState extends State { useOldImageOnUrlChange: true, ), ), + SizedBox(height: MediaQuery.of(context).size.height * 0.03), Row( children: statusLinkedHashMap.expand((linkedHashMap) { @@ -99,8 +100,6 @@ class _DetailsComponentWidgetState extends State { horizontal: MediaQuery.of(context).size.width * 0.05, ), child: TextFormField( - // controller: _model.textControllerStatus, - // focusNode: _model.textFieldFocusNodeStatus, autofocus: false, canRequestFocus: false, readOnly: true, @@ -115,7 +114,7 @@ class _DetailsComponentWidgetState extends State { ), filled: true, fillColor: item.value, - labelText: item.key, + labelText: item.key, labelStyle: FlutterFlowTheme.of(context).labelMedium.override( fontFamily: FlutterFlowTheme.of(context).labelMediumFamily, fontWeight: FontWeight.bold, @@ -149,7 +148,7 @@ class _DetailsComponentWidgetState extends State { FlutterFlowTheme.of(context).bodyMediumFamily, ), ), - textAlign: TextAlign.start, + textAlign: TextAlign.center, maxLines: null, keyboardType: TextInputType.name, validator: _model.textController1Validator.asValidator(context), diff --git a/lib/pages/vehicles_on_the_property/vehicle_model.dart b/lib/pages/vehicles_on_the_property/vehicle_model.dart index 8218c2e7..7d896079 100644 --- a/lib/pages/vehicles_on_the_property/vehicle_model.dart +++ b/lib/pages/vehicles_on_the_property/vehicle_model.dart @@ -51,9 +51,7 @@ class VehicleModel extends FlutterFlowModel { '${FFLocalizations.of(context).getVariableText(ptText: "Tag", enText: "Tag")}:': item['tag'].toString().toUpperCase(), }), - imagePath: 'https://freaccess.com.br/freaccess/Images/Clients/${StorageUtil().cliUUID}.png', statusHashMap: [ - if (item['model'] != null) Map.from({item['model']: FlutterFlowTheme.of(context).primary}), ], ); }