fix scrollable column in liberation history page
This commit is contained in:
parent
474e43fcb1
commit
b094117d54
|
@ -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>"; };
|
||||||
6436409F27A31CDD00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409E27A31CDF00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
6436409827A31CDC00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409F27A31CD200820AF7 /* 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 = (
|
||||||
6436409F27A31CDD00820AF7 /* pt */,
|
6436409E27A31CDF00820AF7 /* pt */,
|
||||||
6436409827A31CDC00820AF7 /* en */,
|
6436409F27A31CD200820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -208,24 +208,18 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final wrapGetLiberationsResponse = snapshot.data!;
|
final columnGetLiberationsResponse = snapshot.data!;
|
||||||
return Builder(
|
return Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
final liberationHistory = PhpGroup.getLiberationsCall
|
final liberationHistory = PhpGroup.getLiberationsCall
|
||||||
.rqList(
|
.rqList(
|
||||||
wrapGetLiberationsResponse.jsonBody,
|
columnGetLiberationsResponse.jsonBody,
|
||||||
)
|
)
|
||||||
?.toList() ??
|
?.toList() ??
|
||||||
[];
|
[];
|
||||||
return Wrap(
|
return SingleChildScrollView(
|
||||||
spacing: 2.0,
|
child: Column(
|
||||||
runSpacing: 1.0,
|
mainAxisSize: MainAxisSize.max,
|
||||||
alignment: WrapAlignment.start,
|
|
||||||
crossAxisAlignment: WrapCrossAlignment.start,
|
|
||||||
direction: Axis.horizontal,
|
|
||||||
runAlignment: WrapAlignment.start,
|
|
||||||
verticalDirection: VerticalDirection.down,
|
|
||||||
clipBehavior: Clip.none,
|
|
||||||
children: List.generate(liberationHistory.length,
|
children: List.generate(liberationHistory.length,
|
||||||
(liberationHistoryIndex) {
|
(liberationHistoryIndex) {
|
||||||
final liberationHistoryItem =
|
final liberationHistoryItem =
|
||||||
|
@ -264,7 +258,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
const Duration(milliseconds: 500),
|
const Duration(milliseconds: 500),
|
||||||
fadeOutDuration:
|
fadeOutDuration:
|
||||||
const Duration(milliseconds: 500),
|
const Duration(milliseconds: 500),
|
||||||
imageUrl: valueOrDefault<String>(
|
imageUrl:
|
||||||
|
valueOrDefault<String>(
|
||||||
'https://freaccess.com.br/freaccess/getImage.php?&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
'https://freaccess.com.br/freaccess/getImage.php?&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.VTE_ID''',
|
r'''$.VTE_ID''',
|
||||||
|
@ -288,7 +283,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
mainAxisSize:
|
mainAxisSize:
|
||||||
MainAxisSize.max,
|
MainAxisSize.max,
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
MainAxisAlignment.center,
|
MainAxisAlignment
|
||||||
|
.center,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment:
|
alignment:
|
||||||
|
@ -299,16 +295,14 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.VTE_NOME''',
|
r'''$.VTE_NOME''',
|
||||||
).toString(),
|
).toString(),
|
||||||
style:
|
style: FlutterFlowTheme
|
||||||
FlutterFlowTheme.of(
|
.of(context)
|
||||||
context)
|
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
fontSize:
|
fontSize: 12.5,
|
||||||
12.5,
|
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0.0,
|
0.0,
|
||||||
fontWeight:
|
fontWeight:
|
||||||
|
@ -323,8 +317,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
.addToStart(
|
.addToStart(const SizedBox(
|
||||||
const SizedBox(width: 10.0))
|
width: 10.0))
|
||||||
.addToEnd(const SizedBox(
|
.addToEnd(const SizedBox(
|
||||||
width: 10.0)),
|
width: 10.0)),
|
||||||
),
|
),
|
||||||
|
@ -348,7 +342,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
fontSize: 12.5,
|
fontSize:
|
||||||
|
12.5,
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0.0,
|
0.0,
|
||||||
fontWeight:
|
fontWeight:
|
||||||
|
@ -385,7 +380,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
fontSize: 12.5,
|
fontSize:
|
||||||
|
12.5,
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0.0,
|
0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -396,8 +392,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
.divide(
|
.divide(const SizedBox(
|
||||||
const SizedBox(width: 10.0))
|
width: 10.0))
|
||||||
.addToStart(const SizedBox(
|
.addToStart(const SizedBox(
|
||||||
width: 10.0)),
|
width: 10.0)),
|
||||||
),
|
),
|
||||||
|
@ -421,7 +417,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
fontSize: 12.5,
|
fontSize:
|
||||||
|
12.5,
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0.0,
|
0.0,
|
||||||
fontWeight:
|
fontWeight:
|
||||||
|
@ -447,7 +444,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
.bodyMediumFamily,
|
.bodyMediumFamily,
|
||||||
fontSize: 12.5,
|
fontSize:
|
||||||
|
12.5,
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0.0,
|
0.0,
|
||||||
useGoogleFonts: GoogleFonts
|
useGoogleFonts: GoogleFonts
|
||||||
|
@ -458,8 +456,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
.divide(
|
.divide(const SizedBox(
|
||||||
const SizedBox(width: 10.0))
|
width: 10.0))
|
||||||
.addToStart(const SizedBox(
|
.addToStart(const SizedBox(
|
||||||
width: 10.0)),
|
width: 10.0)),
|
||||||
),
|
),
|
||||||
|
@ -470,23 +468,28 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsetsDirectional
|
const EdgeInsetsDirectional
|
||||||
.fromSTEB(10.0, 0.0,
|
.fromSTEB(
|
||||||
0.0, 0.0),
|
10.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 200.0,
|
width: 200.0,
|
||||||
height: 27.0,
|
height: 27.0,
|
||||||
decoration: BoxDecoration(
|
decoration:
|
||||||
|
BoxDecoration(
|
||||||
color: valueOrDefault<
|
color: valueOrDefault<
|
||||||
Color>(
|
Color>(
|
||||||
() {
|
() {
|
||||||
if (functions.jsonToStr(
|
if (functions
|
||||||
|
.jsonToStr(
|
||||||
getJsonField(
|
getJsonField(
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.VAW_STATUS''',
|
r'''$.VAW_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"L\"') {
|
'\"L\"') {
|
||||||
return FlutterFlowTheme
|
return FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.success;
|
.success;
|
||||||
} else if (functions
|
} else if (functions
|
||||||
.jsonToStr(
|
.jsonToStr(
|
||||||
|
@ -495,8 +498,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
r'''$.VAW_STATUS''',
|
r'''$.VAW_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"B\"') {
|
'\"B\"') {
|
||||||
return FlutterFlowTheme
|
return FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.error;
|
.error;
|
||||||
} else if (functions
|
} else if (functions
|
||||||
.jsonToStr(
|
.jsonToStr(
|
||||||
|
@ -505,12 +508,12 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
r'''$.VAW_STATUS''',
|
r'''$.VAW_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"S\"') {
|
'\"S\"') {
|
||||||
return FlutterFlowTheme
|
return FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.warning;
|
.warning;
|
||||||
} else {
|
} else {
|
||||||
return FlutterFlowTheme
|
return FlutterFlowTheme.of(
|
||||||
.of(context)
|
context)
|
||||||
.primary;
|
.primary;
|
||||||
}
|
}
|
||||||
}(),
|
}(),
|
||||||
|
@ -520,7 +523,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius
|
BorderRadius
|
||||||
.circular(5.0),
|
.circular(
|
||||||
|
5.0),
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment:
|
alignment:
|
||||||
|
@ -528,20 +532,23 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
0.0, 0.0),
|
0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${FFLocalizations.of(context).getVariableText(
|
'${FFLocalizations.of(context).getVariableText(
|
||||||
ptText: 'Liberação',
|
ptText:
|
||||||
|
'Liberação',
|
||||||
enText:
|
enText:
|
||||||
'Liberation',
|
'Liberation',
|
||||||
)}${() {
|
)}${() {
|
||||||
if (functions.jsonToStr(
|
if (functions
|
||||||
|
.jsonToStr(
|
||||||
getJsonField(
|
getJsonField(
|
||||||
liberationHistoryItem,
|
liberationHistoryItem,
|
||||||
r'''$.NOT_STATUS''',
|
r'''$.NOT_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"L\"') {
|
'\"L\"') {
|
||||||
return FFLocalizations
|
return FFLocalizations.of(
|
||||||
.of(context)
|
context)
|
||||||
.getVariableText(
|
.getVariableText(
|
||||||
ptText: 'Ativa',
|
ptText:
|
||||||
|
'Ativa',
|
||||||
enText:
|
enText:
|
||||||
'Active',
|
'Active',
|
||||||
);
|
);
|
||||||
|
@ -552,8 +559,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
r'''$.NOT_STATUS''',
|
r'''$.NOT_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"B\"') {
|
'\"B\"') {
|
||||||
return FFLocalizations
|
return FFLocalizations.of(
|
||||||
.of(context)
|
context)
|
||||||
.getVariableText(
|
.getVariableText(
|
||||||
ptText:
|
ptText:
|
||||||
'Bloqueada',
|
'Bloqueada',
|
||||||
|
@ -567,8 +574,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
r'''$.NOT_STATUS''',
|
r'''$.NOT_STATUS''',
|
||||||
)) ==
|
)) ==
|
||||||
'\"S\"') {
|
'\"S\"') {
|
||||||
return FFLocalizations
|
return FFLocalizations.of(
|
||||||
.of(context)
|
context)
|
||||||
.getVariableText(
|
.getVariableText(
|
||||||
ptText:
|
ptText:
|
||||||
'Pendente',
|
'Pendente',
|
||||||
|
@ -576,8 +583,8 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
'Warning',
|
'Warning',
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return FFLocalizations
|
return FFLocalizations.of(
|
||||||
.of(context)
|
context)
|
||||||
.getVariableText(
|
.getVariableText(
|
||||||
ptText:
|
ptText:
|
||||||
'Desconhecida',
|
'Desconhecida',
|
||||||
|
@ -619,6 +626,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue