Updating to latest FlutterFlow output.
This commit is contained in:
parent
1af0fc6ac0
commit
7345882967
|
@ -44,8 +44,8 @@
|
||||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
6436409E27A31CD800820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409927A31CD100820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
6436409927A31CD300820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409727A31CD000820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@
|
||||||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
6436409E27A31CD800820AF7 /* pt */,
|
6436409927A31CD100820AF7 /* pt */,
|
||||||
6436409927A31CD300820AF7 /* en */,
|
6436409727A31CD000820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -24,6 +24,10 @@ class VisitRequestTemplateComponentModel
|
||||||
FocusNode? textFieldFocusNode4;
|
FocusNode? textFieldFocusNode4;
|
||||||
TextEditingController? textController4;
|
TextEditingController? textController4;
|
||||||
String? Function(BuildContext, String?)? textController4Validator;
|
String? Function(BuildContext, String?)? textController4Validator;
|
||||||
|
// State field(s) for TextField widget.
|
||||||
|
FocusNode? textFieldFocusNode5;
|
||||||
|
TextEditingController? textController5;
|
||||||
|
String? Function(BuildContext, String?)? textController5Validator;
|
||||||
// Stores action output result for [Action Block - visitRequestComponentAction] action in IconButton widget.
|
// Stores action output result for [Action Block - visitRequestComponentAction] action in IconButton widget.
|
||||||
bool? blockVisitRequest;
|
bool? blockVisitRequest;
|
||||||
// Stores action output result for [Action Block - visitRequestComponentAction] action in IconButton widget.
|
// Stores action output result for [Action Block - visitRequestComponentAction] action in IconButton widget.
|
||||||
|
@ -45,6 +49,9 @@ class VisitRequestTemplateComponentModel
|
||||||
|
|
||||||
textFieldFocusNode4?.dispose();
|
textFieldFocusNode4?.dispose();
|
||||||
textController4?.dispose();
|
textController4?.dispose();
|
||||||
|
|
||||||
|
textFieldFocusNode5?.dispose();
|
||||||
|
textController5?.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Action blocks.
|
/// Action blocks.
|
||||||
|
|
|
@ -14,14 +14,14 @@ class VisitRequestTemplateComponentWidget extends StatefulWidget {
|
||||||
required this.vteName,
|
required this.vteName,
|
||||||
required this.vteReason,
|
required this.vteReason,
|
||||||
required this.vteMsg,
|
required this.vteMsg,
|
||||||
required this.vteDocument,
|
this.vteDocument,
|
||||||
required this.cliUUID,
|
this.cliUUID,
|
||||||
required this.vteUUID,
|
this.vteUUID,
|
||||||
required this.vawName,
|
this.vawName,
|
||||||
required this.msgUUID,
|
this.msgUUID,
|
||||||
required this.vawRef,
|
this.vawRef,
|
||||||
required this.vawUUID,
|
this.vawUUID,
|
||||||
required this.vawDestino,
|
this.vawDestino,
|
||||||
required this.vawStatus,
|
required this.vawStatus,
|
||||||
this.vawDate,
|
this.vawDate,
|
||||||
});
|
});
|
||||||
|
@ -69,8 +69,11 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
_model.textController3 ??= TextEditingController(text: widget.vteMsg);
|
_model.textController3 ??= TextEditingController(text: widget.vteMsg);
|
||||||
_model.textFieldFocusNode3 ??= FocusNode();
|
_model.textFieldFocusNode3 ??= FocusNode();
|
||||||
|
|
||||||
_model.textController4 ??= TextEditingController();
|
_model.textController4 ??= TextEditingController(text: widget.vawDate);
|
||||||
_model.textFieldFocusNode4 ??= FocusNode();
|
_model.textFieldFocusNode4 ??= FocusNode();
|
||||||
|
|
||||||
|
_model.textController5 ??= TextEditingController();
|
||||||
|
_model.textFieldFocusNode5 ??= FocusNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -320,7 +323,7 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelText: FFLocalizations.of(context).getText(
|
labelText: FFLocalizations.of(context).getText(
|
||||||
'kt87omsz' /* Data */,
|
'kt87omsz' /* Mensagem */,
|
||||||
),
|
),
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
.labelMedium
|
||||||
|
@ -364,13 +367,72 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
_model.textController3Validator.asValidator(context),
|
_model.textController3Validator.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (widget.vawStatus != 'S')
|
||||||
|
Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
||||||
|
child: TextFormField(
|
||||||
|
controller: _model.textController4,
|
||||||
|
focusNode: _model.textFieldFocusNode4,
|
||||||
|
autofocus: false,
|
||||||
|
textCapitalization: TextCapitalization.none,
|
||||||
|
textInputAction: TextInputAction.next,
|
||||||
|
readOnly: true,
|
||||||
|
obscureText: false,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
isDense: true,
|
||||||
|
labelText: FFLocalizations.of(context).getText(
|
||||||
|
'yyni99pe' /* Data */,
|
||||||
|
),
|
||||||
|
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),
|
||||||
|
),
|
||||||
|
hintStyle:
|
||||||
|
FlutterFlowTheme.of(context).labelMedium.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(context)
|
||||||
|
.labelMediumFamily,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
|
.containsKey(FlutterFlowTheme.of(context)
|
||||||
|
.labelMediumFamily),
|
||||||
|
),
|
||||||
|
enabledBorder: InputBorder.none,
|
||||||
|
focusedBorder: InputBorder.none,
|
||||||
|
errorBorder: InputBorder.none,
|
||||||
|
focusedErrorBorder: InputBorder.none,
|
||||||
|
suffixIcon: Icon(
|
||||||
|
Icons.date_range,
|
||||||
|
color: FlutterFlowTheme.of(context).accent1,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||||
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
|
FlutterFlowTheme.of(context).bodyMediumFamily),
|
||||||
|
),
|
||||||
|
textAlign: TextAlign.start,
|
||||||
|
validator:
|
||||||
|
_model.textController4Validator.asValidator(context),
|
||||||
|
),
|
||||||
|
),
|
||||||
if (widget.vawStatus == 'S')
|
if (widget.vawStatus == 'S')
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsetsDirectional.fromSTEB(24.0, 20.0, 24.0, 20.0),
|
const EdgeInsetsDirectional.fromSTEB(24.0, 20.0, 24.0, 20.0),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller: _model.textController4,
|
controller: _model.textController5,
|
||||||
focusNode: _model.textFieldFocusNode4,
|
focusNode: _model.textFieldFocusNode5,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
|
@ -443,7 +505,7 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily),
|
FlutterFlowTheme.of(context).bodyMediumFamily),
|
||||||
),
|
),
|
||||||
validator:
|
validator:
|
||||||
_model.textController4Validator.asValidator(context),
|
_model.textController5Validator.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (widget.vawStatus == 'S')
|
if (widget.vawStatus == 'S')
|
||||||
|
@ -468,7 +530,7 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
context,
|
context,
|
||||||
actionValue: 'B',
|
actionValue: 'B',
|
||||||
refUUID: widget.vawRef,
|
refUUID: widget.vawRef,
|
||||||
responseValue: _model.textController4.text,
|
responseValue: _model.textController5.text,
|
||||||
vteUUID: widget.vteUUID,
|
vteUUID: widget.vteUUID,
|
||||||
);
|
);
|
||||||
shouldSetState = true;
|
shouldSetState = true;
|
||||||
|
@ -499,7 +561,7 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
context,
|
context,
|
||||||
actionValue: 'L',
|
actionValue: 'L',
|
||||||
refUUID: widget.vawRef,
|
refUUID: widget.vawRef,
|
||||||
responseValue: _model.textController4.text,
|
responseValue: _model.textController5.text,
|
||||||
vteUUID: widget.vteUUID,
|
vteUUID: widget.vteUUID,
|
||||||
);
|
);
|
||||||
shouldSetState = true;
|
shouldSetState = true;
|
||||||
|
|
|
@ -998,10 +998,18 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
'en': 'Reason',
|
'en': 'Reason',
|
||||||
},
|
},
|
||||||
'kt87omsz': {
|
'kt87omsz': {
|
||||||
|
'pt': 'Mensagem',
|
||||||
|
'en': 'Message',
|
||||||
|
},
|
||||||
|
'cx6sviir': {
|
||||||
|
'pt': '',
|
||||||
|
'en': '',
|
||||||
|
},
|
||||||
|
'yyni99pe': {
|
||||||
'pt': 'Data',
|
'pt': 'Data',
|
||||||
'en': 'Date',
|
'en': 'Date',
|
||||||
},
|
},
|
||||||
'cx6sviir': {
|
'noktw1kq': {
|
||||||
'pt': '',
|
'pt': '',
|
||||||
'en': '',
|
'en': '',
|
||||||
},
|
},
|
||||||
|
|
|
@ -224,75 +224,127 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
liberationHistory[liberationHistoryIndex];
|
liberationHistory[liberationHistoryIndex];
|
||||||
return Align(
|
return Align(
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Card(
|
child: InkWell(
|
||||||
clipBehavior: Clip.antiAliasWithSaveLayer,
|
splashColor: Colors.transparent,
|
||||||
color: FlutterFlowTheme.of(context)
|
focusColor: Colors.transparent,
|
||||||
.secondaryBackground,
|
hoverColor: Colors.transparent,
|
||||||
elevation: 5.0,
|
highlightColor: Colors.transparent,
|
||||||
shape: RoundedRectangleBorder(
|
onTap: () async {
|
||||||
borderRadius: BorderRadius.circular(8.0),
|
context.pushNamed('homePage');
|
||||||
),
|
},
|
||||||
child: Container(
|
child: Card(
|
||||||
width: 350.0,
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||||
height: 115.0,
|
color: FlutterFlowTheme.of(context)
|
||||||
decoration: BoxDecoration(
|
.secondaryBackground,
|
||||||
color: FlutterFlowTheme.of(context)
|
elevation: 5.0,
|
||||||
.secondaryBackground,
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(8.0),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Container(
|
||||||
mainAxisSize: MainAxisSize.max,
|
width: 350.0,
|
||||||
mainAxisAlignment:
|
height: 115.0,
|
||||||
MainAxisAlignment.spaceBetween,
|
decoration: BoxDecoration(
|
||||||
children: [
|
color: FlutterFlowTheme.of(context)
|
||||||
Padding(
|
.secondaryBackground,
|
||||||
padding:
|
),
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
child: Row(
|
||||||
0.0, 0.0, 10.0, 0.0),
|
mainAxisSize: MainAxisSize.max,
|
||||||
child: ClipRRect(
|
mainAxisAlignment:
|
||||||
borderRadius:
|
MainAxisAlignment.spaceBetween,
|
||||||
BorderRadius.circular(100.0),
|
children: [
|
||||||
child: CachedNetworkImage(
|
Padding(
|
||||||
fadeInDuration:
|
padding: const EdgeInsetsDirectional
|
||||||
const Duration(milliseconds: 500),
|
.fromSTEB(
|
||||||
fadeOutDuration:
|
0.0, 0.0, 10.0, 0.0),
|
||||||
const Duration(milliseconds: 500),
|
child: ClipRRect(
|
||||||
imageUrl:
|
borderRadius:
|
||||||
valueOrDefault<String>(
|
BorderRadius.circular(
|
||||||
'https://freaccess.com.br/freaccess/getImage.php?&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
100.0),
|
||||||
liberationHistoryItem,
|
child: CachedNetworkImage(
|
||||||
r'''$.VTE_ID''',
|
fadeInDuration: const Duration(
|
||||||
).toString()}&tipo=E',
|
milliseconds: 500),
|
||||||
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
fadeOutDuration: const Duration(
|
||||||
|
milliseconds: 500),
|
||||||
|
imageUrl:
|
||||||
|
valueOrDefault<String>(
|
||||||
|
'https://freaccess.com.br/freaccess/getImage.php?&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.VTE_ID''',
|
||||||
|
).toString()}&tipo=E',
|
||||||
|
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
||||||
|
),
|
||||||
|
width: 80.0,
|
||||||
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
width: 80.0,
|
|
||||||
fit: BoxFit.cover,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Expanded(
|
||||||
Expanded(
|
child: Container(
|
||||||
child: Container(
|
width: 100.0,
|
||||||
width: 100.0,
|
height: 100.0,
|
||||||
height: 100.0,
|
decoration: const BoxDecoration(),
|
||||||
decoration: const BoxDecoration(),
|
child: Column(
|
||||||
child: Column(
|
mainAxisSize:
|
||||||
mainAxisSize: MainAxisSize.max,
|
MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisSize:
|
mainAxisSize:
|
||||||
MainAxisSize.max,
|
MainAxisSize.max,
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
MainAxisAlignment
|
MainAxisAlignment
|
||||||
.center,
|
.center,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment:
|
alignment:
|
||||||
const AlignmentDirectional(
|
const AlignmentDirectional(
|
||||||
-1.0, -1.0),
|
-1.0, -1.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
getJsonField(
|
getJsonField(
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.VTE_NOME''',
|
r'''$.VTE_NOME''',
|
||||||
).toString(),
|
).toString(),
|
||||||
|
style: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
fontSize:
|
||||||
|
12.5,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
fontWeight:
|
||||||
|
FontWeight
|
||||||
|
.bold,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
.addToStart(const SizedBox(
|
||||||
|
width: 10.0))
|
||||||
|
.addToEnd(const SizedBox(
|
||||||
|
width: 10.0)),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisSize:
|
||||||
|
MainAxisSize.max,
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment
|
||||||
|
.start,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
FFLocalizations.of(
|
||||||
|
context)
|
||||||
|
.getText(
|
||||||
|
'dkzewokx' /* Date: */,
|
||||||
|
),
|
||||||
style: FlutterFlowTheme
|
style: FlutterFlowTheme
|
||||||
.of(context)
|
.of(context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
|
@ -313,312 +365,268 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Text(
|
||||||
]
|
(functions.jsonToStr(
|
||||||
.addToStart(const SizedBox(
|
getJsonField(
|
||||||
width: 10.0))
|
liberationHistoryItem,
|
||||||
.addToEnd(const SizedBox(
|
r'''$.NOT_STATUS''',
|
||||||
width: 10.0)),
|
)) ==
|
||||||
),
|
'\"L\"'
|
||||||
Row(
|
? getJsonField(
|
||||||
mainAxisSize:
|
liberationHistoryItem,
|
||||||
MainAxisSize.max,
|
r'''$.NOT_DTRESPOSTA''',
|
||||||
mainAxisAlignment:
|
)
|
||||||
MainAxisAlignment.start,
|
: getJsonField(
|
||||||
children: [
|
liberationHistoryItem,
|
||||||
Text(
|
r'''$.NOT_DTENVIO''',
|
||||||
FFLocalizations.of(
|
))
|
||||||
context)
|
.toString(),
|
||||||
.getText(
|
style: FlutterFlowTheme
|
||||||
'dkzewokx' /* Date: */,
|
.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
fontSize: 12.5,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
style:
|
]
|
||||||
FlutterFlowTheme.of(
|
.divide(const SizedBox(
|
||||||
context)
|
width: 10.0))
|
||||||
.bodyMedium
|
.addToStart(const SizedBox(
|
||||||
.override(
|
width: 10.0)),
|
||||||
fontFamily: FlutterFlowTheme.of(
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisSize:
|
||||||
|
MainAxisSize.max,
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment
|
||||||
|
.start,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
FFLocalizations.of(
|
||||||
|
context)
|
||||||
|
.getText(
|
||||||
|
'2s9avwbq' /* Motivo: */,
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
fontSize: 12.5,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
fontWeight:
|
||||||
|
FontWeight
|
||||||
|
.bold,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.NOT_MOTIVO''',
|
||||||
|
).toString(),
|
||||||
|
style: FlutterFlowTheme
|
||||||
|
.of(context)
|
||||||
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
fontSize: 12.5,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
.divide(const SizedBox(
|
||||||
|
width: 10.0))
|
||||||
|
.addToStart(const SizedBox(
|
||||||
|
width: 10.0)),
|
||||||
|
),
|
||||||
|
Align(
|
||||||
|
alignment:
|
||||||
|
const AlignmentDirectional(
|
||||||
|
-1.0, 0.0),
|
||||||
|
child: Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsetsDirectional
|
||||||
|
.fromSTEB(
|
||||||
|
10.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0),
|
||||||
|
child: Container(
|
||||||
|
width: 200.0,
|
||||||
|
height: 27.0,
|
||||||
|
decoration:
|
||||||
|
BoxDecoration(
|
||||||
|
color:
|
||||||
|
valueOrDefault<
|
||||||
|
Color>(
|
||||||
|
() {
|
||||||
|
if (functions
|
||||||
|
.jsonToStr(
|
||||||
|
getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.VAW_STATUS''',
|
||||||
|
)) ==
|
||||||
|
'\"L\"') {
|
||||||
|
return FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.success;
|
||||||
fontSize:
|
} else if (functions
|
||||||
12.5,
|
.jsonToStr(
|
||||||
letterSpacing:
|
getJsonField(
|
||||||
0.0,
|
liberationHistoryItem,
|
||||||
fontWeight:
|
r'''$.VAW_STATUS''',
|
||||||
FontWeight
|
)) ==
|
||||||
.bold,
|
'\"B\"') {
|
||||||
useGoogleFonts: GoogleFonts
|
return FlutterFlowTheme.of(
|
||||||
.asMap()
|
context)
|
||||||
.containsKey(
|
.error;
|
||||||
FlutterFlowTheme.of(context)
|
} else if (functions
|
||||||
.bodyMediumFamily),
|
.jsonToStr(
|
||||||
),
|
getJsonField(
|
||||||
),
|
liberationHistoryItem,
|
||||||
Text(
|
r'''$.VAW_STATUS''',
|
||||||
(functions.jsonToStr(
|
)) ==
|
||||||
getJsonField(
|
'\"S\"') {
|
||||||
|
return FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.warning;
|
||||||
|
} else {
|
||||||
|
return FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primary;
|
||||||
|
}
|
||||||
|
}(),
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.primary,
|
||||||
|
),
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius
|
||||||
|
.circular(
|
||||||
|
5.0),
|
||||||
|
),
|
||||||
|
child: Align(
|
||||||
|
alignment:
|
||||||
|
const AlignmentDirectional(
|
||||||
|
0.0, 0.0),
|
||||||
|
child: Text(
|
||||||
|
'${FFLocalizations.of(context).getVariableText(
|
||||||
|
ptText:
|
||||||
|
'Liberação',
|
||||||
|
enText:
|
||||||
|
'Liberation',
|
||||||
|
)}${() {
|
||||||
|
if (functions
|
||||||
|
.jsonToStr(
|
||||||
|
getJsonField(
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.NOT_STATUS''',
|
r'''$.NOT_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"L\"'
|
'\"L\"') {
|
||||||
? getJsonField(
|
return FFLocalizations.of(
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_DTRESPOSTA''',
|
|
||||||
)
|
|
||||||
: getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_DTENVIO''',
|
|
||||||
))
|
|
||||||
.toString(),
|
|
||||||
style:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.getVariableText(
|
||||||
fontSize:
|
ptText:
|
||||||
12.5,
|
'Ativa',
|
||||||
letterSpacing:
|
enText:
|
||||||
0.0,
|
'Active',
|
||||||
useGoogleFonts: GoogleFonts
|
);
|
||||||
.asMap()
|
} else if (functions
|
||||||
.containsKey(
|
.jsonToStr(
|
||||||
FlutterFlowTheme.of(context)
|
getJsonField(
|
||||||
.bodyMediumFamily),
|
liberationHistoryItem,
|
||||||
),
|
r'''$.NOT_STATUS''',
|
||||||
),
|
)) ==
|
||||||
]
|
'\"B\"') {
|
||||||
.divide(const SizedBox(
|
return FFLocalizations.of(
|
||||||
width: 10.0))
|
|
||||||
.addToStart(const SizedBox(
|
|
||||||
width: 10.0)),
|
|
||||||
),
|
|
||||||
Row(
|
|
||||||
mainAxisSize:
|
|
||||||
MainAxisSize.max,
|
|
||||||
mainAxisAlignment:
|
|
||||||
MainAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getText(
|
|
||||||
'2s9avwbq' /* Motivo: */,
|
|
||||||
),
|
|
||||||
style:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.getVariableText(
|
||||||
fontSize:
|
ptText:
|
||||||
12.5,
|
'Bloqueada',
|
||||||
letterSpacing:
|
enText:
|
||||||
0.0,
|
'Blocked',
|
||||||
fontWeight:
|
);
|
||||||
FontWeight
|
} else if (functions
|
||||||
.bold,
|
.jsonToStr(
|
||||||
useGoogleFonts: GoogleFonts
|
getJsonField(
|
||||||
.asMap()
|
liberationHistoryItem,
|
||||||
.containsKey(
|
r'''$.NOT_STATUS''',
|
||||||
FlutterFlowTheme.of(context)
|
)) ==
|
||||||
.bodyMediumFamily),
|
'\"S\"') {
|
||||||
),
|
return FFLocalizations.of(
|
||||||
),
|
|
||||||
Text(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_MOTIVO''',
|
|
||||||
).toString(),
|
|
||||||
style:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.getVariableText(
|
||||||
fontSize:
|
ptText:
|
||||||
12.5,
|
'Pendente',
|
||||||
letterSpacing:
|
enText:
|
||||||
0.0,
|
'Warning',
|
||||||
useGoogleFonts: GoogleFonts
|
);
|
||||||
.asMap()
|
} else {
|
||||||
.containsKey(
|
return FFLocalizations.of(
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.bodyMediumFamily),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
|
||||||
.divide(const SizedBox(
|
|
||||||
width: 10.0))
|
|
||||||
.addToStart(const SizedBox(
|
|
||||||
width: 10.0)),
|
|
||||||
),
|
|
||||||
Align(
|
|
||||||
alignment:
|
|
||||||
const AlignmentDirectional(
|
|
||||||
-1.0, 0.0),
|
|
||||||
child: Padding(
|
|
||||||
padding:
|
|
||||||
const EdgeInsetsDirectional
|
|
||||||
.fromSTEB(
|
|
||||||
10.0,
|
|
||||||
0.0,
|
|
||||||
0.0,
|
|
||||||
0.0),
|
|
||||||
child: Container(
|
|
||||||
width: 200.0,
|
|
||||||
height: 27.0,
|
|
||||||
decoration:
|
|
||||||
BoxDecoration(
|
|
||||||
color: valueOrDefault<
|
|
||||||
Color>(
|
|
||||||
() {
|
|
||||||
if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"L\"') {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.success;
|
|
||||||
} else if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"B\"') {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.error;
|
|
||||||
} else if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"S\"') {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.warning;
|
|
||||||
} else {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primary;
|
|
||||||
}
|
|
||||||
}(),
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.primary,
|
|
||||||
),
|
|
||||||
borderRadius:
|
|
||||||
BorderRadius
|
|
||||||
.circular(
|
|
||||||
5.0),
|
|
||||||
),
|
|
||||||
child: Align(
|
|
||||||
alignment:
|
|
||||||
const AlignmentDirectional(
|
|
||||||
0.0, 0.0),
|
|
||||||
child: Text(
|
|
||||||
'${FFLocalizations.of(context).getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Liberação',
|
|
||||||
enText:
|
|
||||||
'Liberation',
|
|
||||||
)}${() {
|
|
||||||
if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"L\"') {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Ativa',
|
|
||||||
enText:
|
|
||||||
'Active',
|
|
||||||
);
|
|
||||||
} else if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"B\"') {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Bloqueada',
|
|
||||||
enText:
|
|
||||||
'Blocked',
|
|
||||||
);
|
|
||||||
} else if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
liberationHistoryItem,
|
|
||||||
r'''$.NOT_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"S\"') {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Pendente',
|
|
||||||
enText:
|
|
||||||
'Warning',
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Desconhecida',
|
|
||||||
enText:
|
|
||||||
'Unknow',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}()}',
|
|
||||||
style: FlutterFlowTheme
|
|
||||||
.of(context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.getVariableText(
|
||||||
color: FlutterFlowTheme.of(
|
ptText:
|
||||||
context)
|
'Desconhecida',
|
||||||
.info,
|
enText:
|
||||||
letterSpacing:
|
'Unknow',
|
||||||
0.0,
|
);
|
||||||
useGoogleFonts: GoogleFonts
|
}
|
||||||
.asMap()
|
}()}',
|
||||||
.containsKey(
|
style: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(context)
|
.of(context)
|
||||||
.bodyMediumFamily),
|
.bodyMedium
|
||||||
),
|
.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily,
|
||||||
|
color: FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
|
.info,
|
||||||
|
letterSpacing:
|
||||||
|
0.0,
|
||||||
|
useGoogleFonts: GoogleFonts
|
||||||
|
.asMap()
|
||||||
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context).bodyMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
].divide(
|
||||||
].divide(const SizedBox(height: 3.0)),
|
const SizedBox(height: 3.0)),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue