add liberation history page
This commit is contained in:
parent
228be49ebd
commit
c24d10dc23
|
@ -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>"; };
|
||||||
6436409727A31CD100820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409727A31CDF00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
6436409F27A31CDE00820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
6436409A27A31CD600820AF7 /* 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 = (
|
||||||
6436409727A31CD100820AF7 /* pt */,
|
6436409727A31CDF00820AF7 /* pt */,
|
||||||
6436409F27A31CDE00820AF7 /* en */,
|
6436409A27A31CD600820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -34,6 +34,7 @@ class PhpGroup {
|
||||||
static RespondeSolicitacaoCall respondeSolicitacaoCall =
|
static RespondeSolicitacaoCall respondeSolicitacaoCall =
|
||||||
RespondeSolicitacaoCall();
|
RespondeSolicitacaoCall();
|
||||||
static GetAccessCall getAccessCall = GetAccessCall();
|
static GetAccessCall getAccessCall = GetAccessCall();
|
||||||
|
static GetLiberationsCall getLiberationsCall = GetLiberationsCall();
|
||||||
}
|
}
|
||||||
|
|
||||||
class LoginCall {
|
class LoginCall {
|
||||||
|
@ -1803,6 +1804,184 @@ class GetAccessCall {
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class GetLiberationsCall {
|
||||||
|
Future<ApiCallResponse> call({
|
||||||
|
String? devUUID = '',
|
||||||
|
String? userUUID = '',
|
||||||
|
String? cliID = '',
|
||||||
|
String? atividade = '',
|
||||||
|
}) async {
|
||||||
|
final baseUrl = PhpGroup.getBaseUrl();
|
||||||
|
|
||||||
|
return ApiManager.instance.makeApiCall(
|
||||||
|
callName: 'getLiberations',
|
||||||
|
apiUrl: '$baseUrl/processRequest.php',
|
||||||
|
callType: ApiCallType.POST,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
'devUUID': devUUID,
|
||||||
|
'userUUID': userUUID,
|
||||||
|
'cliID': cliID,
|
||||||
|
'atividade': atividade,
|
||||||
|
},
|
||||||
|
bodyType: BodyType.X_WWW_FORM_URL_ENCODED,
|
||||||
|
returnBody: true,
|
||||||
|
encodeBodyUtf8: false,
|
||||||
|
decodeUtf8: false,
|
||||||
|
cache: false,
|
||||||
|
isStreamingApi: false,
|
||||||
|
alwaysAllowBody: false,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool? error(dynamic response) => castToType<bool>(getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.error''',
|
||||||
|
));
|
||||||
|
List? rqList(dynamic response) => getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes''',
|
||||||
|
true,
|
||||||
|
) as List?;
|
||||||
|
List<String>? rqNotID(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_ID''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotDest(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_DESTINO''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotSendDate(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_DTENVIO''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotReceiveDate(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_DTRESPOSTA''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotEmailAnswer(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_EMAILRESPOSTA''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotReason(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_MOTIVO''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotSendMsg(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_MSGENVIO''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotReceiveMsg(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_MSGRESPOSTA''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotName(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_NOME''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotOperator(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_OPERADOR''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotStatus(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_STATUS''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqNotVTE(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].NOT_VISITANTE''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqVteID(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].VTE_ID''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqVteName(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].VTE_NOME''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
List<String>? rqVteRG(dynamic response) => (getJsonField(
|
||||||
|
response,
|
||||||
|
r'''$.solicitacoes[:].VTE_RG''',
|
||||||
|
true,
|
||||||
|
) as List?)
|
||||||
|
?.withoutNulls
|
||||||
|
.map((x) => castToType<String>(x))
|
||||||
|
.withoutNulls
|
||||||
|
.toList();
|
||||||
|
}
|
||||||
|
|
||||||
/// End PHP Group Code
|
/// End PHP Group Code
|
||||||
|
|
||||||
class ApiPagingParams {
|
class ApiPagingParams {
|
||||||
|
|
|
@ -220,7 +220,7 @@ class _OptModalWidgetState extends State<OptModalWidget> {
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'20wie2n3' /* Morador */,
|
'oonqk812' /* Morador */,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: FlutterFlowTheme.of(context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
|
@ -277,7 +277,7 @@ class _OptModalWidgetState extends State<OptModalWidget> {
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'pglvsv6g' /* Visitante */,
|
'zok7lu4w' /* Visitante */,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: FlutterFlowTheme.of(context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
|
|
|
@ -24,10 +24,6 @@ class AccessNotificationModalTemplateComponentModel
|
||||||
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;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState(BuildContext context) {}
|
void initState(BuildContext context) {}
|
||||||
|
@ -45,9 +41,6 @@ class AccessNotificationModalTemplateComponentModel
|
||||||
|
|
||||||
textFieldFocusNode4?.dispose();
|
textFieldFocusNode4?.dispose();
|
||||||
textController4?.dispose();
|
textController4?.dispose();
|
||||||
|
|
||||||
textFieldFocusNode5?.dispose();
|
|
||||||
textController5?.dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Action blocks.
|
/// Action blocks.
|
||||||
|
|
|
@ -50,14 +50,11 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
_model.textController2 ??= TextEditingController(text: widget.type);
|
_model.textController2 ??= TextEditingController(text: widget.type);
|
||||||
_model.textFieldFocusNode2 ??= FocusNode();
|
_model.textFieldFocusNode2 ??= FocusNode();
|
||||||
|
|
||||||
_model.textController3 ??= TextEditingController(text: widget.id);
|
_model.textController3 ??= TextEditingController(text: widget.datetime);
|
||||||
_model.textFieldFocusNode3 ??= FocusNode();
|
_model.textFieldFocusNode3 ??= FocusNode();
|
||||||
|
|
||||||
_model.textController4 ??= TextEditingController(text: widget.datetime);
|
_model.textController4 ??= TextEditingController(text: widget.drive);
|
||||||
_model.textFieldFocusNode4 ??= FocusNode();
|
_model.textFieldFocusNode4 ??= FocusNode();
|
||||||
|
|
||||||
_model.textController5 ??= TextEditingController(text: widget.drive);
|
|
||||||
_model.textFieldFocusNode5 ??= FocusNode();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -230,71 +227,13 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
FlutterFlowTheme.of(context)
|
FlutterFlowTheme.of(context)
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.start,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
keyboardType: TextInputType.name,
|
keyboardType: TextInputType.name,
|
||||||
validator: _model.textController2Validator
|
validator: _model.textController2Validator
|
||||||
.asValidator(context),
|
.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
|
||||||
child: TextFormField(
|
|
||||||
controller: _model.textController3,
|
|
||||||
focusNode: _model.textFieldFocusNode3,
|
|
||||||
autofocus: false,
|
|
||||||
textCapitalization: TextCapitalization.none,
|
|
||||||
textInputAction: TextInputAction.next,
|
|
||||||
readOnly: true,
|
|
||||||
obscureText: false,
|
|
||||||
decoration: InputDecoration(
|
|
||||||
isDense: true,
|
|
||||||
labelText: FFLocalizations.of(context).getText(
|
|
||||||
'vjd9uwla' /* Identificador */,
|
|
||||||
),
|
|
||||||
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.grid_3x3,
|
|
||||||
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.center,
|
|
||||||
validator: _model.textController3Validator
|
|
||||||
.asValidator(context),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
.addToStart(const SizedBox(width: 24.0))
|
.addToStart(const SizedBox(width: 24.0))
|
||||||
.addToEnd(const SizedBox(width: 24.0)),
|
.addToEnd(const SizedBox(width: 24.0)),
|
||||||
|
@ -302,8 +241,8 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
padding: const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller: _model.textController4,
|
controller: _model.textController3,
|
||||||
focusNode: _model.textFieldFocusNode4,
|
focusNode: _model.textFieldFocusNode3,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
|
@ -338,7 +277,7 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
suffixIcon: Icon(
|
suffixIcon: Icon(
|
||||||
Icons.history_edu,
|
Icons.date_range,
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).accent1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -354,14 +293,14 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
keyboardType: TextInputType.name,
|
keyboardType: TextInputType.name,
|
||||||
validator:
|
validator:
|
||||||
_model.textController4Validator.asValidator(context),
|
_model.textController3Validator.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
padding: const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
controller: _model.textController5,
|
controller: _model.textController4,
|
||||||
focusNode: _model.textFieldFocusNode5,
|
focusNode: _model.textFieldFocusNode4,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
textCapitalization: TextCapitalization.none,
|
textCapitalization: TextCapitalization.none,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
|
@ -410,7 +349,7 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.start,
|
textAlign: TextAlign.start,
|
||||||
validator:
|
validator:
|
||||||
_model.textController5Validator.asValidator(context),
|
_model.textController4Validator.asValidator(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
@ -68,6 +68,7 @@ abstract class FlutterFlowTheme {
|
||||||
late Color customColor3;
|
late Color customColor3;
|
||||||
late Color customColor4;
|
late Color customColor4;
|
||||||
late Color customColor5;
|
late Color customColor5;
|
||||||
|
late Color customColor6;
|
||||||
|
|
||||||
@Deprecated('Use displaySmallFamily instead')
|
@Deprecated('Use displaySmallFamily instead')
|
||||||
String get title1Family => displaySmallFamily;
|
String get title1Family => displaySmallFamily;
|
||||||
|
@ -177,6 +178,7 @@ class LightModeTheme extends FlutterFlowTheme {
|
||||||
late Color customColor3 = const Color(0xFFFFFFFF);
|
late Color customColor3 = const Color(0xFFFFFFFF);
|
||||||
late Color customColor4 = const Color(0xFFCFCFCF);
|
late Color customColor4 = const Color(0xFFCFCFCF);
|
||||||
late Color customColor5 = const Color(0xFF979595);
|
late Color customColor5 = const Color(0xFF979595);
|
||||||
|
late Color customColor6 = const Color(0xFF525252);
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract class Typography {
|
abstract class Typography {
|
||||||
|
@ -575,6 +577,7 @@ class DarkModeTheme extends FlutterFlowTheme {
|
||||||
late Color customColor3 = const Color(0xFF1AAB5F);
|
late Color customColor3 = const Color(0xFF1AAB5F);
|
||||||
late Color customColor4 = const Color(0xFF232323);
|
late Color customColor4 = const Color(0xFF232323);
|
||||||
late Color customColor5 = const Color(0xFF232323);
|
late Color customColor5 = const Color(0xFF232323);
|
||||||
|
late Color customColor6 = const Color(0xFF827F82);
|
||||||
}
|
}
|
||||||
|
|
||||||
extension TextStyleHelper on TextStyle {
|
extension TextStyleHelper on TextStyle {
|
||||||
|
|
|
@ -158,10 +158,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
},
|
},
|
||||||
// registerVisitorPage
|
// registerVisitorPage
|
||||||
{
|
{
|
||||||
'q8cct5lk': {
|
|
||||||
'pt': 'Cadastrar Visitante',
|
|
||||||
'en': 'Register Visitor',
|
|
||||||
},
|
|
||||||
'p4ftwxcy': {
|
'p4ftwxcy': {
|
||||||
'pt': 'Clique para adicionar a foto para o visitante',
|
'pt': 'Clique para adicionar a foto para o visitante',
|
||||||
'en': 'Click to add photo for visitor',
|
'en': 'Click to add photo for visitor',
|
||||||
|
@ -214,6 +210,10 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
'pt': 'Cadastrar',
|
'pt': 'Cadastrar',
|
||||||
'en': 'Register',
|
'en': 'Register',
|
||||||
},
|
},
|
||||||
|
'megskb6s': {
|
||||||
|
'pt': 'Cadastro Visitante',
|
||||||
|
'en': 'Visitor Registration',
|
||||||
|
},
|
||||||
'xtcz66ar': {
|
'xtcz66ar': {
|
||||||
'pt': 'registerVisitor',
|
'pt': 'registerVisitor',
|
||||||
'en': '',
|
'en': '',
|
||||||
|
@ -418,20 +418,16 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
// liberationHistory
|
// liberationHistory
|
||||||
{
|
{
|
||||||
'dy0mx15f': {
|
'dy0mx15f': {
|
||||||
'pt': 'Label here...',
|
'pt': 'Pesquise aqui',
|
||||||
'en': '',
|
'en': 'Search here',
|
||||||
},
|
|
||||||
'f77je6tr': {
|
|
||||||
'pt': 'Visitante: ',
|
|
||||||
'en': 'Visitor:',
|
|
||||||
},
|
},
|
||||||
'dkzewokx': {
|
'dkzewokx': {
|
||||||
'pt': 'Início em: ',
|
'pt': 'Date:',
|
||||||
'en': 'Beginning in:',
|
'en': 'Shipping:',
|
||||||
},
|
},
|
||||||
'qi4mjhtw': {
|
'2s9avwbq': {
|
||||||
'pt': 'Fim em: ',
|
'pt': 'Motivo:',
|
||||||
'en': 'End in:',
|
'en': 'Reason:',
|
||||||
},
|
},
|
||||||
'784f83pc': {
|
'784f83pc': {
|
||||||
'pt': 'Histórico de Liberação',
|
'pt': 'Histórico de Liberação',
|
||||||
|
@ -492,13 +488,13 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
'pt': 'Tipo de Pessoa',
|
'pt': 'Tipo de Pessoa',
|
||||||
'en': 'Type of Person',
|
'en': 'Type of Person',
|
||||||
},
|
},
|
||||||
'20wie2n3': {
|
'oonqk812': {
|
||||||
'pt': 'Morador',
|
'pt': 'Morador',
|
||||||
'en': '',
|
'en': 'Resident',
|
||||||
},
|
},
|
||||||
'pglvsv6g': {
|
'zok7lu4w': {
|
||||||
'pt': 'Visitante',
|
'pt': 'Visitante',
|
||||||
'en': '',
|
'en': 'Visitor',
|
||||||
},
|
},
|
||||||
'pepv7gl9': {
|
'pepv7gl9': {
|
||||||
'pt': 'Tipo de Acesso',
|
'pt': 'Tipo de Acesso',
|
||||||
|
@ -1020,14 +1016,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
'pt': 'Tipo',
|
'pt': 'Tipo',
|
||||||
'en': 'Type',
|
'en': 'Type',
|
||||||
},
|
},
|
||||||
'vjd9uwla': {
|
|
||||||
'pt': 'Identificador',
|
|
||||||
'en': 'Identifier',
|
|
||||||
},
|
|
||||||
's3nix1ot': {
|
|
||||||
'pt': '',
|
|
||||||
'en': '',
|
|
||||||
},
|
|
||||||
'jveeqpdz': {
|
'jveeqpdz': {
|
||||||
'pt': 'Acesso',
|
'pt': 'Acesso',
|
||||||
'en': 'Access',
|
'en': 'Access',
|
||||||
|
|
|
@ -71,7 +71,7 @@ class _AcessHistoryPageWidgetState extends State<AcessHistoryPageWidget> {
|
||||||
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||||
fontFamily: FlutterFlowTheme.of(context).headlineMediumFamily,
|
fontFamily: FlutterFlowTheme.of(context).headlineMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
fontSize: 18.0,
|
fontSize: 16.0,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).headlineMediumFamily),
|
FlutterFlowTheme.of(context).headlineMediumFamily),
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
|
import '/flutter_flow/request_manager.dart';
|
||||||
|
|
||||||
import 'liberation_history_widget.dart' show LiberationHistoryWidget;
|
import 'liberation_history_widget.dart' show LiberationHistoryWidget;
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -11,6 +14,23 @@ class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
||||||
TextEditingController? textController;
|
TextEditingController? textController;
|
||||||
String? Function(BuildContext, String?)? textControllerValidator;
|
String? Function(BuildContext, String?)? textControllerValidator;
|
||||||
|
|
||||||
|
/// Query cache managers for this widget.
|
||||||
|
|
||||||
|
final _getLiberationsManager = FutureRequestManager<ApiCallResponse>();
|
||||||
|
Future<ApiCallResponse> getLiberations({
|
||||||
|
String? uniqueQueryKey,
|
||||||
|
bool? overrideCache,
|
||||||
|
required Future<ApiCallResponse> Function() requestFn,
|
||||||
|
}) =>
|
||||||
|
_getLiberationsManager.performRequest(
|
||||||
|
uniqueQueryKey: uniqueQueryKey,
|
||||||
|
overrideCache: overrideCache,
|
||||||
|
requestFn: requestFn,
|
||||||
|
);
|
||||||
|
void clearGetLiberationsCache() => _getLiberationsManager.clear();
|
||||||
|
void clearGetLiberationsCacheKey(String? uniqueKey) =>
|
||||||
|
_getLiberationsManager.clearRequest(uniqueKey);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState(BuildContext context) {}
|
void initState(BuildContext context) {}
|
||||||
|
|
||||||
|
@ -19,5 +39,9 @@ class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
||||||
unfocusNode.dispose();
|
unfocusNode.dispose();
|
||||||
textFieldFocusNode?.dispose();
|
textFieldFocusNode?.dispose();
|
||||||
textController?.dispose();
|
textController?.dispose();
|
||||||
|
|
||||||
|
/// Dispose query cache managers for this widget.
|
||||||
|
|
||||||
|
clearGetLiberationsCache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import '/backend/api_requests/api_calls.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart';
|
|
||||||
import '/flutter_flow/flutter_flow_icon_button.dart';
|
import '/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
|
@ -83,7 +82,6 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
actions: const [],
|
actions: const [],
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
elevation: 2.0,
|
|
||||||
),
|
),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
top: true,
|
top: true,
|
||||||
|
@ -110,7 +108,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelText: FFLocalizations.of(context).getText(
|
labelText: FFLocalizations.of(context).getText(
|
||||||
'dy0mx15f' /* Label here... */,
|
'dy0mx15f' /* Pesquise aqui */,
|
||||||
),
|
),
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
.labelMedium
|
||||||
|
@ -188,11 +186,13 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
height: double.infinity,
|
height: double.infinity,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
child: FutureBuilder<ApiCallResponse>(
|
child: FutureBuilder<ApiCallResponse>(
|
||||||
future: PhpGroup.getVisitsCall.call(
|
future: _model.getLiberations(
|
||||||
devUUID: FFAppState().devUUID,
|
requestFn: () => PhpGroup.getLiberationsCall.call(
|
||||||
userUUID: FFAppState().userUUID,
|
devUUID: FFAppState().devUUID,
|
||||||
cliID: FFAppState().cliUUID,
|
userUUID: FFAppState().userUUID,
|
||||||
atividade: 'getVisitas',
|
cliID: FFAppState().cliUUID,
|
||||||
|
atividade: 'getSolicitacoes',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
// Customize what your widget looks like when it's loading.
|
// Customize what your widget looks like when it's loading.
|
||||||
|
@ -208,12 +208,12 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
final wrapGetVisitsResponse = snapshot.data!;
|
final wrapGetLiberationsResponse = snapshot.data!;
|
||||||
return Builder(
|
return Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
final visitaWrap = PhpGroup.getVisitsCall
|
final liberationHistory = PhpGroup.getLiberationsCall
|
||||||
.visitasList(
|
.rqList(
|
||||||
wrapGetVisitsResponse.jsonBody,
|
wrapGetLiberationsResponse.jsonBody,
|
||||||
)
|
)
|
||||||
?.toList() ??
|
?.toList() ??
|
||||||
[];
|
[];
|
||||||
|
@ -226,133 +226,79 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
runAlignment: WrapAlignment.start,
|
runAlignment: WrapAlignment.start,
|
||||||
verticalDirection: VerticalDirection.down,
|
verticalDirection: VerticalDirection.down,
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
children: List.generate(visitaWrap.length,
|
children: List.generate(liberationHistory.length,
|
||||||
(visitaWrapIndex) {
|
(liberationHistoryIndex) {
|
||||||
final visitaWrapItem =
|
final liberationHistoryItem =
|
||||||
visitaWrap[visitaWrapIndex];
|
liberationHistory[liberationHistoryIndex];
|
||||||
return Align(
|
return Align(
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
child: InkWell(
|
child: Card(
|
||||||
splashColor: Colors.transparent,
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||||
focusColor: Colors.transparent,
|
color: FlutterFlowTheme.of(context)
|
||||||
hoverColor: Colors.transparent,
|
.secondaryBackground,
|
||||||
highlightColor: Colors.transparent,
|
elevation: 5.0,
|
||||||
onTap: () async {
|
shape: RoundedRectangleBorder(
|
||||||
await showModalBottomSheet(
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
isScrollControlled: true,
|
),
|
||||||
backgroundColor: Colors.transparent,
|
child: Container(
|
||||||
enableDrag: false,
|
width: 350.0,
|
||||||
useSafeArea: true,
|
height: 115.0,
|
||||||
context: context,
|
decoration: BoxDecoration(
|
||||||
builder: (context) {
|
color: FlutterFlowTheme.of(context)
|
||||||
return GestureDetector(
|
.secondaryBackground,
|
||||||
onTap: () => _model
|
),
|
||||||
.unfocusNode.canRequestFocus
|
child: Row(
|
||||||
? FocusScope.of(context)
|
mainAxisSize: MainAxisSize.max,
|
||||||
.requestFocus(
|
mainAxisAlignment:
|
||||||
_model.unfocusNode)
|
MainAxisAlignment.spaceBetween,
|
||||||
: FocusScope.of(context)
|
children: [
|
||||||
.unfocus(),
|
Padding(
|
||||||
child: Padding(
|
padding:
|
||||||
padding: MediaQuery.viewInsetsOf(
|
const EdgeInsetsDirectional.fromSTEB(
|
||||||
context),
|
0.0, 0.0, 10.0, 0.0),
|
||||||
child:
|
child: ClipRRect(
|
||||||
VisitDetailsModalTemplateComponentWidget(
|
borderRadius:
|
||||||
visitStatusStr: getJsonField(
|
BorderRadius.circular(100.0),
|
||||||
visitaWrapItem,
|
child: CachedNetworkImage(
|
||||||
r'''$.VAW_STATUS''',
|
fadeInDuration:
|
||||||
).toString(),
|
const Duration(milliseconds: 500),
|
||||||
visitStartDateStr: getJsonField(
|
fadeOutDuration:
|
||||||
visitaWrapItem,
|
const Duration(milliseconds: 500),
|
||||||
r'''$.VAW_DTINICIO''',
|
imageUrl: valueOrDefault<String>(
|
||||||
).toString(),
|
'https://freaccess.com.br/freaccess/getImage.php?&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
||||||
visitEndDateStr: getJsonField(
|
liberationHistoryItem,
|
||||||
visitaWrapItem,
|
r'''$.VTE_ID''',
|
||||||
r'''$.VAW_DTFIM''',
|
|
||||||
).toString(),
|
|
||||||
visitReasonStr: getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.MOT_DESCRICAO''',
|
|
||||||
).toString(),
|
|
||||||
visitLevelStr: getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.NAC_DESCRICAO''',
|
|
||||||
).toString(),
|
|
||||||
visitTempStr: getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VTE_UNICA''',
|
|
||||||
).toString(),
|
|
||||||
visitObsStr: getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_OBS''',
|
|
||||||
).toString(),
|
|
||||||
visitorImgPath:
|
|
||||||
valueOrDefault<String>(
|
|
||||||
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VTE_DOCUMENTO''',
|
|
||||||
).toString()}&tipo=E',
|
).toString()}&tipo=E',
|
||||||
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
||||||
),
|
),
|
||||||
visitorStrList: getJsonField(
|
width: 80.0,
|
||||||
visitaWrapItem,
|
fit: BoxFit.cover,
|
||||||
r'''$.VTE_DOCUMENTO''',
|
|
||||||
).toString(),
|
|
||||||
visitIdStr: getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_ID''',
|
|
||||||
).toString(),
|
|
||||||
visitorJsonList: PhpGroup
|
|
||||||
.getVisitsCall
|
|
||||||
.visitasList(
|
|
||||||
wrapGetVisitsResponse.jsonBody,
|
|
||||||
),
|
|
||||||
updateToggleIdx: () async {},
|
|
||||||
repeatVisitSchedule: () async {},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
),
|
||||||
},
|
Expanded(
|
||||||
).then((value) => safeSetState(() {}));
|
child: Container(
|
||||||
},
|
width: 100.0,
|
||||||
child: Card(
|
height: 100.0,
|
||||||
clipBehavior: Clip.antiAliasWithSaveLayer,
|
decoration: const BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
child: Column(
|
||||||
.secondaryBackground,
|
mainAxisSize: MainAxisSize.max,
|
||||||
elevation: 5.0,
|
children: [
|
||||||
shape: RoundedRectangleBorder(
|
Row(
|
||||||
borderRadius: BorderRadius.circular(8.0),
|
mainAxisSize:
|
||||||
),
|
MainAxisSize.max,
|
||||||
child: Container(
|
mainAxisAlignment:
|
||||||
width: 350.0,
|
MainAxisAlignment.center,
|
||||||
height: 115.0,
|
children: [
|
||||||
decoration: BoxDecoration(
|
Align(
|
||||||
color: FlutterFlowTheme.of(context)
|
alignment:
|
||||||
.secondaryBackground,
|
const AlignmentDirectional(
|
||||||
),
|
-1.0, -1.0),
|
||||||
child: Row(
|
child: Text(
|
||||||
mainAxisSize: MainAxisSize.max,
|
getJsonField(
|
||||||
mainAxisAlignment:
|
liberationHistoryItem,
|
||||||
MainAxisAlignment.spaceBetween,
|
r'''$.VTE_NOME''',
|
||||||
children: [
|
).toString(),
|
||||||
Expanded(
|
|
||||||
child: Container(
|
|
||||||
width: 100.0,
|
|
||||||
height: 100.0,
|
|
||||||
decoration: const BoxDecoration(),
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.max,
|
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
mainAxisSize:
|
|
||||||
MainAxisSize.max,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getText(
|
|
||||||
'f77je6tr' /* Visitante: */,
|
|
||||||
),
|
|
||||||
style:
|
style:
|
||||||
FlutterFlowTheme.of(
|
FlutterFlowTheme.of(
|
||||||
context)
|
context)
|
||||||
|
@ -375,17 +321,65 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
),
|
||||||
alignment:
|
]
|
||||||
const AlignmentDirectional(
|
.addToStart(
|
||||||
-1.0, -1.0),
|
const SizedBox(width: 10.0))
|
||||||
child: Text(
|
.addToEnd(const SizedBox(
|
||||||
getJsonField(
|
width: 10.0)),
|
||||||
visitaWrapItem,
|
),
|
||||||
r'''$.VTE_NOME''',
|
Row(
|
||||||
).toString(),
|
mainAxisSize:
|
||||||
style: FlutterFlowTheme
|
MainAxisSize.max,
|
||||||
.of(context)
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
FFLocalizations.of(
|
||||||
|
context)
|
||||||
|
.getText(
|
||||||
|
'dkzewokx' /* Date: */,
|
||||||
|
),
|
||||||
|
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(
|
||||||
|
(functions.jsonToStr(
|
||||||
|
getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.NOT_STATUS''',
|
||||||
|
)) ==
|
||||||
|
'\"L\"'
|
||||||
|
? getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.NOT_DTRESPOSTA''',
|
||||||
|
)
|
||||||
|
: getJsonField(
|
||||||
|
liberationHistoryItem,
|
||||||
|
r'''$.NOT_DTENVIO''',
|
||||||
|
))
|
||||||
|
.toString(),
|
||||||
|
style:
|
||||||
|
FlutterFlowTheme.of(
|
||||||
|
context)
|
||||||
.bodyMedium
|
.bodyMedium
|
||||||
.override(
|
.override(
|
||||||
fontFamily: FlutterFlowTheme.of(
|
fontFamily: FlutterFlowTheme.of(
|
||||||
|
@ -400,310 +394,226 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
FlutterFlowTheme.of(context)
|
FlutterFlowTheme.of(context)
|
||||||
.bodyMediumFamily),
|
.bodyMediumFamily),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
.divide(
|
||||||
|
const SizedBox(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)
|
||||||
|
.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)
|
||||||
|
.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),
|
||||||
),
|
),
|
||||||
].addToStart(
|
child: Align(
|
||||||
const SizedBox(width: 10.0)),
|
alignment:
|
||||||
),
|
const AlignmentDirectional(
|
||||||
Row(
|
0.0, 0.0),
|
||||||
mainAxisSize:
|
child: Text(
|
||||||
MainAxisSize.max,
|
'${FFLocalizations.of(context).getVariableText(
|
||||||
mainAxisAlignment:
|
ptText: 'Liberação',
|
||||||
MainAxisAlignment.start,
|
enText:
|
||||||
children: [
|
'Liberation',
|
||||||
Text(
|
)}${() {
|
||||||
FFLocalizations.of(
|
if (functions.jsonToStr(
|
||||||
context)
|
getJsonField(
|
||||||
.getText(
|
liberationHistoryItem,
|
||||||
'dkzewokx' /* Início em: */,
|
r'''$.NOT_STATUS''',
|
||||||
),
|
)) ==
|
||||||
style:
|
'\"L\"') {
|
||||||
FlutterFlowTheme.of(
|
return FFLocalizations
|
||||||
context)
|
.of(context)
|
||||||
.bodyMedium
|
.getVariableText(
|
||||||
.override(
|
ptText: 'Ativa',
|
||||||
fontFamily: FlutterFlowTheme.of(
|
enText:
|
||||||
context)
|
'Active',
|
||||||
.bodyMediumFamily,
|
);
|
||||||
fontSize:
|
} else if (functions
|
||||||
12.5,
|
.jsonToStr(
|
||||||
letterSpacing:
|
getJsonField(
|
||||||
0.0,
|
liberationHistoryItem,
|
||||||
fontWeight:
|
r'''$.NOT_STATUS''',
|
||||||
FontWeight
|
)) ==
|
||||||
.bold,
|
'\"B\"') {
|
||||||
useGoogleFonts: GoogleFonts
|
return FFLocalizations
|
||||||
.asMap()
|
.of(context)
|
||||||
.containsKey(
|
.getVariableText(
|
||||||
FlutterFlowTheme.of(context)
|
ptText:
|
||||||
.bodyMediumFamily),
|
'Bloqueada',
|
||||||
),
|
enText:
|
||||||
),
|
'Blocked',
|
||||||
Text(
|
);
|
||||||
getJsonField(
|
} else if (functions
|
||||||
visitaWrapItem,
|
.jsonToStr(
|
||||||
r'''$.VAW_DTINICIO''',
|
getJsonField(
|
||||||
).toString(),
|
liberationHistoryItem,
|
||||||
style:
|
r'''$.NOT_STATUS''',
|
||||||
FlutterFlowTheme.of(
|
)) ==
|
||||||
context)
|
'\"S\"') {
|
||||||
.bodyMedium
|
return FFLocalizations
|
||||||
.override(
|
.of(context)
|
||||||
fontFamily: FlutterFlowTheme.of(
|
.getVariableText(
|
||||||
context)
|
ptText:
|
||||||
.bodyMediumFamily,
|
'Pendente',
|
||||||
fontSize:
|
enText:
|
||||||
12.5,
|
'Warning',
|
||||||
letterSpacing:
|
);
|
||||||
0.0,
|
} else {
|
||||||
useGoogleFonts: GoogleFonts
|
return FFLocalizations
|
||||||
.asMap()
|
.of(context)
|
||||||
.containsKey(
|
.getVariableText(
|
||||||
FlutterFlowTheme.of(context)
|
ptText:
|
||||||
.bodyMediumFamily),
|
'Desconhecida',
|
||||||
),
|
enText:
|
||||||
),
|
'Unknow',
|
||||||
].addToStart(
|
);
|
||||||
const SizedBox(width: 10.0)),
|
}
|
||||||
),
|
}()}',
|
||||||
Row(
|
style: FlutterFlowTheme
|
||||||
mainAxisSize:
|
.of(context)
|
||||||
MainAxisSize.max,
|
.bodyMedium
|
||||||
mainAxisAlignment:
|
.override(
|
||||||
MainAxisAlignment.start,
|
fontFamily: FlutterFlowTheme.of(
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getText(
|
|
||||||
'qi4mjhtw' /* Fim em: */,
|
|
||||||
),
|
|
||||||
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(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_DTFIM''',
|
|
||||||
).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),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
].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(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"A\"') {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.success;
|
.bodyMediumFamily,
|
||||||
} else if (functions
|
color: FlutterFlowTheme.of(
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"C\"') {
|
|
||||||
return FlutterFlowTheme.of(
|
|
||||||
context)
|
context)
|
||||||
.error;
|
.info,
|
||||||
} else if (functions
|
letterSpacing:
|
||||||
.jsonToStr(
|
0.0,
|
||||||
getJsonField(
|
useGoogleFonts: GoogleFonts
|
||||||
visitaWrapItem,
|
.asMap()
|
||||||
r'''$.VAW_STATUS''',
|
.containsKey(
|
||||||
)) ==
|
FlutterFlowTheme.of(context)
|
||||||
'\"I\"') {
|
.bodyMediumFamily),
|
||||||
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(
|
|
||||||
() {
|
|
||||||
if (functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"A\"') {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Ativo',
|
|
||||||
enText:
|
|
||||||
'Active',
|
|
||||||
);
|
|
||||||
} else if ((functions
|
|
||||||
.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"F\"') ||
|
|
||||||
(functions.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"C\"') ||
|
|
||||||
(functions.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"B\"') ||
|
|
||||||
(functions.jsonToStr(
|
|
||||||
getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VAW_STATUS''',
|
|
||||||
)) ==
|
|
||||||
'\"I\"')) {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Cancelado',
|
|
||||||
enText:
|
|
||||||
'Canceled',
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
return FFLocalizations.of(
|
|
||||||
context)
|
|
||||||
.getVariableText(
|
|
||||||
ptText:
|
|
||||||
'Pendente',
|
|
||||||
enText:
|
|
||||||
'Pending',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}(),
|
|
||||||
style: FlutterFlowTheme
|
|
||||||
.of(context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.bodyMediumFamily,
|
|
||||||
color: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.info,
|
|
||||||
letterSpacing:
|
|
||||||
0.0,
|
|
||||||
useGoogleFonts: GoogleFonts
|
|
||||||
.asMap()
|
|
||||||
.containsKey(
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.bodyMediumFamily),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(height: 3.0)),
|
),
|
||||||
),
|
].divide(const SizedBox(height: 3.0)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ClipRRect(
|
),
|
||||||
borderRadius:
|
],
|
||||||
BorderRadius.circular(0.0),
|
|
||||||
child: CachedNetworkImage(
|
|
||||||
fadeInDuration:
|
|
||||||
const Duration(milliseconds: 500),
|
|
||||||
fadeOutDuration:
|
|
||||||
const Duration(milliseconds: 500),
|
|
||||||
imageUrl: valueOrDefault<String>(
|
|
||||||
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${getJsonField(
|
|
||||||
visitaWrapItem,
|
|
||||||
r'''$.VTE_DOCUMENTO''',
|
|
||||||
).toString()}&tipo=E',
|
|
||||||
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/7ftdetkzc3s0/360_F_64676383_LdbmhiNM6Ypzb3FM4PPuFP9rHe7ri8Ju.jpg',
|
|
||||||
),
|
|
||||||
fit: BoxFit.cover,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import '/backend/api_requests/api_calls.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
||||||
import '/flutter_flow/flutter_flow_drop_down.dart';
|
import '/flutter_flow/flutter_flow_drop_down.dart';
|
||||||
|
import '/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import '/flutter_flow/flutter_flow_theme.dart';
|
import '/flutter_flow/flutter_flow_theme.dart';
|
||||||
import '/flutter_flow/flutter_flow_util.dart';
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
import '/flutter_flow/flutter_flow_widgets.dart';
|
import '/flutter_flow/flutter_flow_widgets.dart';
|
||||||
|
@ -62,6 +63,39 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
key: scaffoldKey,
|
key: scaffoldKey,
|
||||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||||
|
appBar: AppBar(
|
||||||
|
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||||
|
automaticallyImplyLeading: false,
|
||||||
|
leading: FlutterFlowIconButton(
|
||||||
|
borderColor: Colors.transparent,
|
||||||
|
borderRadius: 30.0,
|
||||||
|
borderWidth: 1.0,
|
||||||
|
buttonSize: 60.0,
|
||||||
|
icon: Icon(
|
||||||
|
Icons.keyboard_arrow_left,
|
||||||
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
|
size: 30.0,
|
||||||
|
),
|
||||||
|
onPressed: () async {
|
||||||
|
context.pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
title: Text(
|
||||||
|
FFLocalizations.of(context).getText(
|
||||||
|
'megskb6s' /* Cadastro Visitante */,
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(context).headlineMediumFamily,
|
||||||
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
|
fontSize: 15.0,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
|
FlutterFlowTheme.of(context).headlineMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
actions: const [],
|
||||||
|
centerTitle: true,
|
||||||
|
),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
top: true,
|
top: true,
|
||||||
child: Align(
|
child: Align(
|
||||||
|
@ -83,28 +117,6 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Align(
|
|
||||||
alignment: const AlignmentDirectional(-1.0, -1.0),
|
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
|
||||||
20.0, 20.0, 0.0, 20.0),
|
|
||||||
child: Text(
|
|
||||||
FFLocalizations.of(context).getText(
|
|
||||||
'q8cct5lk' /* Cadastrar Visitante */,
|
|
||||||
),
|
|
||||||
style: FlutterFlowTheme.of(context)
|
|
||||||
.bodyLarge
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Nunito',
|
|
||||||
fontSize: 21.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontWeight: FontWeight.w800,
|
|
||||||
useGoogleFonts:
|
|
||||||
GoogleFonts.asMap().containsKey('Nunito'),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Builder(
|
Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
if ((_model.uploadedLocalFile.bytes?.isNotEmpty ??
|
if ((_model.uploadedLocalFile.bytes?.isNotEmpty ??
|
||||||
|
@ -127,7 +139,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
_model.uploadedLocalFile.bytes ??
|
_model.uploadedLocalFile.bytes ??
|
||||||
Uint8List.fromList([]),
|
Uint8List.fromList([]),
|
||||||
width: 300.0,
|
width: 300.0,
|
||||||
height: 100.0,
|
height: 200.0,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -325,7 +337,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).customColor6,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
@ -409,7 +421,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).customColor6,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
@ -525,7 +537,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
elevation: 2.0,
|
elevation: 2.0,
|
||||||
borderColor:
|
borderColor:
|
||||||
FlutterFlowTheme.of(context).accent1,
|
FlutterFlowTheme.of(context).customColor6,
|
||||||
borderWidth: 0.5,
|
borderWidth: 0.5,
|
||||||
borderRadius: 8.0,
|
borderRadius: 8.0,
|
||||||
margin: const EdgeInsetsDirectional.fromSTEB(
|
margin: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
@ -603,7 +615,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).customColor6,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
@ -685,7 +697,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).customColor6,
|
||||||
width: 0.5,
|
width: 0.5,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
@ -734,7 +746,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
alignment: const AlignmentDirectional(0.0, 1.0),
|
alignment: const AlignmentDirectional(0.0, 1.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsetsDirectional.fromSTEB(0.0, 50.0, 0.0, 0.0),
|
const EdgeInsetsDirectional.fromSTEB(0.0, 65.0, 0.0, 0.0),
|
||||||
child: FFButtonWidget(
|
child: FFButtonWidget(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (((_model.uploadedLocalFile.bytes
|
if (((_model.uploadedLocalFile.bytes
|
||||||
|
@ -864,7 +876,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(height: 10.0)),
|
]
|
||||||
|
.divide(const SizedBox(height: 10.0))
|
||||||
|
.addToStart(const SizedBox(height: 30.0)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue