fix modal de meus veiculos
This commit is contained in:
parent
abf2827afe
commit
a29cd60c26
|
@ -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<DetailsComponentWidget> {
|
|||
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<DetailsComponentWidget> {
|
|||
useOldImageOnUrlChange: true,
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: MediaQuery.of(context).size.height * 0.03),
|
||||
Row(
|
||||
children: statusLinkedHashMap.expand((linkedHashMap) {
|
||||
|
@ -99,8 +100,6 @@ class _DetailsComponentWidgetState extends State<DetailsComponentWidget> {
|
|||
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<DetailsComponentWidget> {
|
|||
),
|
||||
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<DetailsComponentWidget> {
|
|||
FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||
),
|
||||
),
|
||||
textAlign: TextAlign.start,
|
||||
textAlign: TextAlign.center,
|
||||
maxLines: null,
|
||||
keyboardType: TextInputType.name,
|
||||
validator: _model.textController1Validator.asValidator(context),
|
||||
|
|
|
@ -51,9 +51,7 @@ class VehicleModel extends FlutterFlowModel<VehicleOnTheProperty> {
|
|||
'${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<String, Color>.from({item['model']: FlutterFlowTheme.of(context).primary}),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue