Merge branch 'flutterflow' into feature/liberation
This commit is contained in:
commit
07ed93513d
|
@ -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>"; };
|
||||||
6436409427A31CD300820AF7 /* 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>"; };
|
||||||
6436409F27A31CD500820AF7 /* 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 = (
|
||||||
6436409427A31CD300820AF7 /* pt */,
|
6436409727A31CDF00820AF7 /* pt */,
|
||||||
6436409F27A31CD500820AF7 /* en */,
|
6436409A27A31CD600820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
|
|
@ -36,6 +36,7 @@ class PhpGroup {
|
||||||
static RespondeSolicitacaoCall respondeSolicitacaoCall =
|
static RespondeSolicitacaoCall respondeSolicitacaoCall =
|
||||||
RespondeSolicitacaoCall();
|
RespondeSolicitacaoCall();
|
||||||
static GetAccessCall getAccessCall = GetAccessCall();
|
static GetAccessCall getAccessCall = GetAccessCall();
|
||||||
|
static GetLiberationsCall getLiberationsCall = GetLiberationsCall();
|
||||||
}
|
}
|
||||||
|
|
||||||
class UpdToken {
|
class UpdToken {
|
||||||
|
@ -1852,6 +1853,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 {
|
||||||
|
|
|
@ -10,19 +10,15 @@ class OptModalModel extends FlutterFlowModel<OptModalWidget> {
|
||||||
FocusNode? textFieldFocusNode;
|
FocusNode? textFieldFocusNode;
|
||||||
TextEditingController? textController;
|
TextEditingController? textController;
|
||||||
String? Function(BuildContext, String?)? textControllerValidator;
|
String? Function(BuildContext, String?)? textControllerValidator;
|
||||||
|
// State field(s) for Checkbox widget.
|
||||||
|
bool? checkboxValue1;
|
||||||
|
// State field(s) for Checkbox widget.
|
||||||
|
bool? checkboxValue2;
|
||||||
// State field(s) for CheckboxGroup widget.
|
// State field(s) for CheckboxGroup widget.
|
||||||
FormFieldController<List<String>>? checkboxGroupValueController1;
|
FormFieldController<List<String>>? checkboxGroupValueController;
|
||||||
List<String>? get checkboxGroupValues1 =>
|
List<String>? get checkboxGroupValues => checkboxGroupValueController?.value;
|
||||||
checkboxGroupValueController1?.value;
|
set checkboxGroupValues(List<String>? v) =>
|
||||||
set checkboxGroupValues1(List<String>? v) =>
|
checkboxGroupValueController?.value = v;
|
||||||
checkboxGroupValueController1?.value = v;
|
|
||||||
|
|
||||||
// State field(s) for CheckboxGroup widget.
|
|
||||||
FormFieldController<List<String>>? checkboxGroupValueController2;
|
|
||||||
List<String>? get checkboxGroupValues2 =>
|
|
||||||
checkboxGroupValueController2?.value;
|
|
||||||
set checkboxGroupValues2(List<String>? v) =>
|
|
||||||
checkboxGroupValueController2?.value = v;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState(BuildContext context) {}
|
void initState(BuildContext context) {}
|
||||||
|
|
|
@ -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
|
||||||
|
@ -234,71 +231,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)),
|
||||||
|
@ -307,8 +246,8 @@ class _AccessNotificationModalTemplateComponentWidgetState
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
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,
|
||||||
|
@ -343,7 +282,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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -359,15 +298,15 @@ 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(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
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,
|
||||||
|
@ -416,7 +355,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,10 +488,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
||||||
'pt': 'Tipo de Pessoa',
|
'pt': 'Tipo de Pessoa',
|
||||||
'en': 'Type of Person',
|
'en': 'Type of Person',
|
||||||
},
|
},
|
||||||
'zok7lu4w': {
|
|
||||||
'pt': 'Visitante',
|
|
||||||
'en': 'Visitor',
|
|
||||||
},
|
|
||||||
'oonqk812': {
|
'oonqk812': {
|
||||||
'pt': 'Morador',
|
'pt': 'Morador',
|
||||||
'en': 'Resident',
|
'en': 'Resident',
|
||||||
|
@ -1028,14 +1020,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',
|
||||||
|
|
|
@ -48,7 +48,12 @@ class AcessHistoryPageModel extends FlutterFlowModel<AcessHistoryPageWidget> {
|
||||||
: FocusScope.of(context).unfocus(),
|
: FocusScope.of(context).unfocus(),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: MediaQuery.viewInsetsOf(context),
|
padding: MediaQuery.viewInsetsOf(context),
|
||||||
child: const OptModalWidget(),
|
child: OptModalWidget(
|
||||||
|
togglePersonType: (personType) async {
|
||||||
|
_model.pesType = personType;
|
||||||
|
setState(() {});
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
// import '/flutter_flow/flutter_flow_util.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
// import 'liberation_history_widget.dart' show LiberationHistoryWidget;
|
import '/flutter_flow/flutter_flow_util.dart';
|
||||||
// import 'package:flutter/material.dart';
|
import '/flutter_flow/request_manager.dart';
|
||||||
|
|
||||||
|
import 'liberation_history_widget.dart' show LiberationHistoryWidget;
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
// class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
// class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
|
||||||
// /// State fields for stateful widgets in this page.
|
// /// State fields for stateful widgets in this page.
|
||||||
|
@ -11,13 +14,34 @@
|
||||||
// TextEditingController? textController;
|
// TextEditingController? textController;
|
||||||
// String? Function(BuildContext, String?)? textControllerValidator;
|
// String? Function(BuildContext, String?)? textControllerValidator;
|
||||||
|
|
||||||
// @override
|
/// Query cache managers for this widget.
|
||||||
// void initState(BuildContext context) {}
|
|
||||||
|
|
||||||
// @override
|
final _getLiberationsManager = FutureRequestManager<ApiCallResponse>();
|
||||||
// void dispose() {
|
Future<ApiCallResponse> getLiberations({
|
||||||
// unfocusNode.dispose();
|
String? uniqueQueryKey,
|
||||||
// textFieldFocusNode?.dispose();
|
bool? overrideCache,
|
||||||
// textController?.dispose();
|
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
|
||||||
|
void initState(BuildContext context) {}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
unfocusNode.dispose();
|
||||||
|
textFieldFocusNode?.dispose();
|
||||||
|
textController?.dispose();
|
||||||
|
|
||||||
|
/// Dispose query cache managers for this widget.
|
||||||
|
|
||||||
|
clearGetLiberationsCache();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import '/backend/api_requests/api_calls.dart';
|
import '/backend/api_requests/api_calls.dart';
|
||||||
import '/components/molecular_components/opt_modal/opt_modal_widget.dart';
|
|
||||||
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
import '/components/molecular_components/throw_exception/throw_exception_widget.dart';
|
||||||
import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart';
|
import '/components/templates_components/visit_details_modal_template_component/visit_details_modal_template_component_widget.dart';
|
||||||
import '/components/templates_components/visitor_details_modal_template_component/visitor_details_modal_template_component_widget.dart';
|
import '/components/templates_components/visitor_details_modal_template_component/visitor_details_modal_template_component_widget.dart';
|
||||||
|
@ -2309,28 +2308,8 @@ class _ScheduleCompleteVisitPageWidgetState
|
||||||
color: FlutterFlowTheme.of(context).primary,
|
color: FlutterFlowTheme.of(context).primary,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () {
|
||||||
await showModalBottomSheet(
|
print('IconButton pressed ...');
|
||||||
isScrollControlled: true,
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
context: context,
|
|
||||||
builder: (context) {
|
|
||||||
return GestureDetector(
|
|
||||||
onTap: () => _model
|
|
||||||
.unfocusNode.canRequestFocus
|
|
||||||
? FocusScope.of(context)
|
|
||||||
.requestFocus(
|
|
||||||
_model.unfocusNode)
|
|
||||||
: FocusScope.of(context)
|
|
||||||
.unfocus(),
|
|
||||||
child: Padding(
|
|
||||||
padding: MediaQuery.viewInsetsOf(
|
|
||||||
context),
|
|
||||||
child: const OptModalWidget(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
).then((value) => safeSetState(() {}));
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue