Merge branch 'flutterflow' into feature/liberation

This commit is contained in:
Jonatas Antunes Messias 2024-07-01 11:19:34 -03:00
commit 07ed93513d
12 changed files with 904 additions and 833 deletions

View File

@ -44,8 +44,8 @@
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>"; };
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>"; };
6436409F27A31CD500820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6436409727A31CDF00820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.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>"; };
/* End PBXFileReference section */
@ -225,8 +225,8 @@
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
6436409427A31CD300820AF7 /* pt */,
6436409F27A31CD500820AF7 /* en */,
6436409727A31CDF00820AF7 /* pt */,
6436409A27A31CD600820AF7 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";

View File

@ -36,6 +36,7 @@ class PhpGroup {
static RespondeSolicitacaoCall respondeSolicitacaoCall =
RespondeSolicitacaoCall();
static GetAccessCall getAccessCall = GetAccessCall();
static GetLiberationsCall getLiberationsCall = GetLiberationsCall();
}
class UpdToken {
@ -1852,6 +1853,184 @@ class GetAccessCall {
.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
class ApiPagingParams {

View File

@ -10,19 +10,15 @@ class OptModalModel extends FlutterFlowModel<OptModalWidget> {
FocusNode? textFieldFocusNode;
TextEditingController? textController;
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.
FormFieldController<List<String>>? checkboxGroupValueController1;
List<String>? get checkboxGroupValues1 =>
checkboxGroupValueController1?.value;
set checkboxGroupValues1(List<String>? 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;
FormFieldController<List<String>>? checkboxGroupValueController;
List<String>? get checkboxGroupValues => checkboxGroupValueController?.value;
set checkboxGroupValues(List<String>? v) =>
checkboxGroupValueController?.value = v;
@override
void initState(BuildContext context) {}

View File

@ -24,10 +24,6 @@ class AccessNotificationModalTemplateComponentModel
FocusNode? textFieldFocusNode4;
TextEditingController? textController4;
String? Function(BuildContext, String?)? textController4Validator;
// State field(s) for TextField widget.
FocusNode? textFieldFocusNode5;
TextEditingController? textController5;
String? Function(BuildContext, String?)? textController5Validator;
@override
void initState(BuildContext context) {}
@ -45,9 +41,6 @@ class AccessNotificationModalTemplateComponentModel
textFieldFocusNode4?.dispose();
textController4?.dispose();
textFieldFocusNode5?.dispose();
textController5?.dispose();
}
/// Action blocks.

View File

@ -50,14 +50,11 @@ class _AccessNotificationModalTemplateComponentWidgetState
_model.textController2 ??= TextEditingController(text: widget.type);
_model.textFieldFocusNode2 ??= FocusNode();
_model.textController3 ??= TextEditingController(text: widget.id);
_model.textController3 ??= TextEditingController(text: widget.datetime);
_model.textFieldFocusNode3 ??= FocusNode();
_model.textController4 ??= TextEditingController(text: widget.datetime);
_model.textController4 ??= TextEditingController(text: widget.drive);
_model.textFieldFocusNode4 ??= FocusNode();
_model.textController5 ??= TextEditingController(text: widget.drive);
_model.textFieldFocusNode5 ??= FocusNode();
}
@override
@ -234,71 +231,13 @@ class _AccessNotificationModalTemplateComponentWidgetState
FlutterFlowTheme.of(context)
.bodyMediumFamily),
),
textAlign: TextAlign.center,
textAlign: TextAlign.start,
maxLines: null,
keyboardType: TextInputType.name,
validator: _model.textController2Validator
.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))
.addToEnd(const SizedBox(width: 24.0)),
@ -307,8 +246,8 @@ class _AccessNotificationModalTemplateComponentWidgetState
padding: const EdgeInsetsDirectional.fromSTEB(
24.0, 0.0, 24.0, 0.0),
child: TextFormField(
controller: _model.textController4,
focusNode: _model.textFieldFocusNode4,
controller: _model.textController3,
focusNode: _model.textFieldFocusNode3,
autofocus: false,
textInputAction: TextInputAction.next,
readOnly: true,
@ -343,7 +282,7 @@ class _AccessNotificationModalTemplateComponentWidgetState
errorBorder: InputBorder.none,
focusedErrorBorder: InputBorder.none,
suffixIcon: Icon(
Icons.history_edu,
Icons.date_range,
color: FlutterFlowTheme.of(context).accent1,
),
),
@ -359,15 +298,15 @@ class _AccessNotificationModalTemplateComponentWidgetState
maxLines: null,
keyboardType: TextInputType.name,
validator:
_model.textController4Validator.asValidator(context),
_model.textController3Validator.asValidator(context),
),
),
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
24.0, 0.0, 24.0, 0.0),
child: TextFormField(
controller: _model.textController5,
focusNode: _model.textFieldFocusNode5,
controller: _model.textController4,
focusNode: _model.textFieldFocusNode4,
autofocus: false,
textCapitalization: TextCapitalization.none,
textInputAction: TextInputAction.next,
@ -416,7 +355,7 @@ class _AccessNotificationModalTemplateComponentWidgetState
),
textAlign: TextAlign.start,
validator:
_model.textController5Validator.asValidator(context),
_model.textController4Validator.asValidator(context),
),
),
]

View File

@ -68,6 +68,7 @@ abstract class FlutterFlowTheme {
late Color customColor3;
late Color customColor4;
late Color customColor5;
late Color customColor6;
@Deprecated('Use displaySmallFamily instead')
String get title1Family => displaySmallFamily;
@ -177,6 +178,7 @@ class LightModeTheme extends FlutterFlowTheme {
late Color customColor3 = const Color(0xFFFFFFFF);
late Color customColor4 = const Color(0xFFCFCFCF);
late Color customColor5 = const Color(0xFF979595);
late Color customColor6 = const Color(0xFF525252);
}
abstract class Typography {
@ -575,6 +577,7 @@ class DarkModeTheme extends FlutterFlowTheme {
late Color customColor3 = const Color(0xFF1AAB5F);
late Color customColor4 = const Color(0xFF232323);
late Color customColor5 = const Color(0xFF232323);
late Color customColor6 = const Color(0xFF827F82);
}
extension TextStyleHelper on TextStyle {

View File

@ -158,10 +158,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
},
// registerVisitorPage
{
'q8cct5lk': {
'pt': 'Cadastrar Visitante',
'en': 'Register Visitor',
},
'p4ftwxcy': {
'pt': 'Clique para adicionar a foto para o visitante',
'en': 'Click to add photo for visitor',
@ -214,6 +210,10 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
'pt': 'Cadastrar',
'en': 'Register',
},
'megskb6s': {
'pt': 'Cadastro Visitante',
'en': 'Visitor Registration',
},
'xtcz66ar': {
'pt': 'registerVisitor',
'en': '',
@ -418,20 +418,16 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
// liberationHistory
{
'dy0mx15f': {
'pt': 'Label here...',
'en': '',
},
'f77je6tr': {
'pt': 'Visitante: ',
'en': 'Visitor:',
'pt': 'Pesquise aqui',
'en': 'Search here',
},
'dkzewokx': {
'pt': 'Início em: ',
'en': 'Beginning in:',
'pt': 'Date:',
'en': 'Shipping:',
},
'qi4mjhtw': {
'pt': 'Fim em: ',
'en': 'End in:',
'2s9avwbq': {
'pt': 'Motivo:',
'en': 'Reason:',
},
'784f83pc': {
'pt': 'Histórico de Liberação',
@ -492,10 +488,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
'pt': 'Tipo de Pessoa',
'en': 'Type of Person',
},
'zok7lu4w': {
'pt': 'Visitante',
'en': 'Visitor',
},
'oonqk812': {
'pt': 'Morador',
'en': 'Resident',
@ -1028,14 +1020,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
'pt': 'Tipo',
'en': 'Type',
},
'vjd9uwla': {
'pt': 'Identificador',
'en': 'Identifier',
},
's3nix1ot': {
'pt': '',
'en': '',
},
'jveeqpdz': {
'pt': 'Acesso',
'en': 'Access',

View File

@ -48,7 +48,12 @@ class AcessHistoryPageModel extends FlutterFlowModel<AcessHistoryPageWidget> {
: FocusScope.of(context).unfocus(),
child: Padding(
padding: MediaQuery.viewInsetsOf(context),
child: const OptModalWidget(),
child: OptModalWidget(
togglePersonType: (personType) async {
_model.pesType = personType;
setState(() {});
},
),
),
);
},

View File

@ -1,6 +1,9 @@
// import '/flutter_flow/flutter_flow_util.dart';
// import 'liberation_history_widget.dart' show LiberationHistoryWidget;
// import 'package:flutter/material.dart';
import '/backend/api_requests/api_calls.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/flutter_flow/request_manager.dart';
import 'liberation_history_widget.dart' show LiberationHistoryWidget;
import 'package:flutter/material.dart';
// class LiberationHistoryModel extends FlutterFlowModel<LiberationHistoryWidget> {
// /// State fields for stateful widgets in this page.
@ -11,13 +14,34 @@
// TextEditingController? textController;
// String? Function(BuildContext, String?)? textControllerValidator;
// @override
// void initState(BuildContext context) {}
/// Query cache managers for this widget.
// @override
// void dispose() {
// unfocusNode.dispose();
// textFieldFocusNode?.dispose();
// textController?.dispose();
// }
// }
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
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

View File

@ -1,6 +1,7 @@
import '/backend/api_requests/api_calls.dart';
import '/components/molecular_components/throw_exception/throw_exception_widget.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_util.dart';
import '/flutter_flow/flutter_flow_widgets.dart';
@ -62,6 +63,39 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
child: Scaffold(
key: scaffoldKey,
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(
top: true,
child: Align(
@ -83,28 +117,6 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,
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: (context) {
if ((_model.uploadedLocalFile.bytes?.isNotEmpty ??
@ -127,7 +139,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
_model.uploadedLocalFile.bytes ??
Uint8List.fromList([]),
width: 300.0,
height: 100.0,
height: 200.0,
fit: BoxFit.cover,
),
),
@ -325,7 +337,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).accent1,
color: FlutterFlowTheme.of(context).customColor6,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
@ -409,7 +421,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).accent1,
color: FlutterFlowTheme.of(context).customColor6,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
@ -525,7 +537,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
),
elevation: 2.0,
borderColor:
FlutterFlowTheme.of(context).accent1,
FlutterFlowTheme.of(context).customColor6,
borderWidth: 0.5,
borderRadius: 8.0,
margin: const EdgeInsetsDirectional.fromSTEB(
@ -603,7 +615,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).accent1,
color: FlutterFlowTheme.of(context).customColor6,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
@ -685,7 +697,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).accent1,
color: FlutterFlowTheme.of(context).customColor6,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
@ -734,7 +746,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
alignment: const AlignmentDirectional(0.0, 1.0),
child: 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(
onPressed: () async {
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)),
),
),
),

View File

@ -1,5 +1,4 @@
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/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';
@ -2309,28 +2308,8 @@ class _ScheduleCompleteVisitPageWidgetState
color: FlutterFlowTheme.of(context).primary,
size: 24.0,
),
onPressed: () async {
await showModalBottomSheet(
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(() {}));
onPressed: () {
print('IconButton pressed ...');
},
),
],