Updating to latest

This commit is contained in:
FlutterFlow 2024-06-20 14:12:16 +00:00
parent 5f860daabd
commit 7cd3431557
20 changed files with 964 additions and 881 deletions

View File

@ -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>"; };
6436409E27A31CD500820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 6436409227A31CD500820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6436409A27A31CD000820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 6436409227A31CD300820AF7 /* 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 = (
6436409E27A31CD500820AF7 /* pt */, 6436409227A31CD500820AF7 /* pt */,
6436409A27A31CD000820AF7 /* en */, 6436409227A31CD300820AF7 /* en */,
); );
name = InfoPlist.strings; name = InfoPlist.strings;
sourceTree = "<group>"; sourceTree = "<group>";

View File

@ -112,6 +112,7 @@ Future singInActionApp(
false, false,
), ),
); );
if (PhpGroup.loginCall.error( if (PhpGroup.loginCall.error(
(loginCall.jsonBody ?? ''), (loginCall.jsonBody ?? ''),
) == ) ==
@ -215,6 +216,7 @@ Future<bool> signUpActionApp(
false, false,
), ),
); );
if (PhpGroup.registerCall.error( if (PhpGroup.registerCall.error(
(registerCall.jsonBody ?? ''), (registerCall.jsonBody ?? ''),
) == ) ==
@ -267,6 +269,7 @@ Future forgotPasswdAction(
forgotPasswd = await PhpGroup.forgotPasswordCall.call( forgotPasswd = await PhpGroup.forgotPasswordCall.call(
email: email, email: email,
); );
if (PhpGroup.forgotPasswordCall.error( if (PhpGroup.forgotPasswordCall.error(
(forgotPasswd.jsonBody ?? ''), (forgotPasswd.jsonBody ?? ''),
) == ) ==

View File

@ -31,6 +31,8 @@ class PhpGroup {
static GetVisitsCall getVisitsCall = GetVisitsCall(); static GetVisitsCall getVisitsCall = GetVisitsCall();
static DeleteVisitCall deleteVisitCall = DeleteVisitCall(); static DeleteVisitCall deleteVisitCall = DeleteVisitCall();
static GetPessoasLocalCall getPessoasLocalCall = GetPessoasLocalCall(); static GetPessoasLocalCall getPessoasLocalCall = GetPessoasLocalCall();
static RespondeSolicitacaoCall respondeSolicitacaoCall =
RespondeSolicitacaoCall();
} }
class LoginCall { class LoginCall {
@ -62,6 +64,7 @@ class LoginCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -146,6 +149,7 @@ class RegisterCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -201,6 +205,7 @@ class ForgotPasswordCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -238,6 +243,7 @@ class GetLocalsCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -324,6 +330,7 @@ class PostScheduleVisitorCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -381,6 +388,7 @@ class PostScheduleVisitCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -438,6 +446,7 @@ class DebugCallCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -485,6 +494,7 @@ class GetScheduleVisitCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -755,6 +765,7 @@ class GetDadosCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -997,6 +1008,7 @@ class GetVisitorByDocCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1066,6 +1078,7 @@ class GetFotoVisitanteCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1106,6 +1119,7 @@ class PostProvVisitSchedulingCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1147,6 +1161,7 @@ class GetVisitsCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1407,6 +1422,7 @@ class DeleteVisitCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1448,6 +1464,7 @@ class GetPessoasLocalCall {
encodeBodyUtf8: false, encodeBodyUtf8: false,
decodeUtf8: false, decodeUtf8: false,
cache: false, cache: false,
isStreamingApi: false,
alwaysAllowBody: false, alwaysAllowBody: false,
); );
} }
@ -1481,6 +1498,45 @@ class GetPessoasLocalCall {
.toList(); .toList();
} }
class RespondeSolicitacaoCall {
Future<ApiCallResponse> call({
String? userUUID = '',
String? devUUID = '',
String? atividade = '',
String? referencia = '',
String? tarefa = '',
String? idDestino = '',
String? idVisitante = '',
}) async {
final baseUrl = PhpGroup.getBaseUrl();
return ApiManager.instance.makeApiCall(
callName: 'respondeSolicitacao',
apiUrl: '$baseUrl/processRequest.php',
callType: ApiCallType.POST,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
params: {
'userUUID': userUUID,
'devUUID': devUUID,
'atividade': atividade,
'referencia': referencia,
'tarefa': tarefa,
'idDestino': idDestino,
'idVisitante': idVisitante,
},
bodyType: BodyType.X_WWW_FORM_URL_ENCODED,
returnBody: true,
encodeBodyUtf8: false,
decodeUtf8: false,
cache: false,
isStreamingApi: false,
alwaysAllowBody: false,
);
}
}
/// End PHP Group Code /// End PHP Group Code
class ApiPagingParams { class ApiPagingParams {

View File

@ -13,6 +13,8 @@ import 'package:mime_type/mime_type.dart';
import '/flutter_flow/uploaded_file.dart'; import '/flutter_flow/uploaded_file.dart';
import 'get_streamed_response.dart';
enum ApiCallType { enum ApiCallType {
GET, GET,
POST, POST,
@ -43,6 +45,7 @@ class ApiCallOptions extends Equatable {
this.decodeUtf8 = false, this.decodeUtf8 = false,
this.alwaysAllowBody = false, this.alwaysAllowBody = false,
this.cache = false, this.cache = false,
this.isStreamingApi = false,
}); });
final String callName; final String callName;
@ -57,6 +60,7 @@ class ApiCallOptions extends Equatable {
final bool decodeUtf8; final bool decodeUtf8;
final bool alwaysAllowBody; final bool alwaysAllowBody;
final bool cache; final bool cache;
final bool isStreamingApi;
ApiCallOptions clone() => ApiCallOptions( ApiCallOptions clone() => ApiCallOptions(
callName: callName, callName: callName,
@ -71,6 +75,7 @@ class ApiCallOptions extends Equatable {
decodeUtf8: decodeUtf8, decodeUtf8: decodeUtf8,
alwaysAllowBody: alwaysAllowBody, alwaysAllowBody: alwaysAllowBody,
cache: cache, cache: cache,
isStreamingApi: isStreamingApi,
); );
@override @override
@ -87,6 +92,7 @@ class ApiCallOptions extends Equatable {
decodeUtf8, decodeUtf8,
alwaysAllowBody, alwaysAllowBody,
cache, cache,
isStreamingApi,
]; ];
static Map<String, dynamic> _cloneMap(Map<String, dynamic> map) { static Map<String, dynamic> _cloneMap(Map<String, dynamic> map) {
@ -104,12 +110,14 @@ class ApiCallResponse {
this.headers, this.headers,
this.statusCode, { this.statusCode, {
this.response, this.response,
this.streamedResponse,
this.exception, this.exception,
}); });
final dynamic jsonBody; final dynamic jsonBody;
final Map<String, String> headers; final Map<String, String> headers;
final int statusCode; final int statusCode;
final http.Response? response; final http.Response? response;
final http.StreamedResponse? streamedResponse;
final Object? exception; final Object? exception;
// Whether we received a 2xx status (which generally marks success). // Whether we received a 2xx status (which generally marks success).
bool get succeeded => statusCode >= 200 && statusCode < 300; bool get succeeded => statusCode >= 200 && statusCode < 300;
@ -183,7 +191,8 @@ class ApiManager {
Map<String, dynamic> headers, Map<String, dynamic> headers,
Map<String, dynamic> params, Map<String, dynamic> params,
bool returnBody, bool returnBody,
bool decodeUtf8, { bool decodeUtf8,
bool isStreamingApi, {
http.Client? client, http.Client? client,
}) async { }) async {
if (params.isNotEmpty) { if (params.isNotEmpty) {
@ -191,6 +200,19 @@ class ApiManager {
Uri.parse(apiUrl).queryParameters.isNotEmpty ? '&' : '?'; Uri.parse(apiUrl).queryParameters.isNotEmpty ? '&' : '?';
apiUrl = '$apiUrl$specifier${asQueryParams(params)}'; apiUrl = '$apiUrl$specifier${asQueryParams(params)}';
} }
if (isStreamingApi) {
client ??= http.Client();
final request =
http.Request(callType.toString().split('.').last, Uri.parse(apiUrl))
..headers.addAll(toStringMap(headers));
final streamedResponse = await getStreamedResponse(request);
return ApiCallResponse(
null,
streamedResponse.headers,
streamedResponse.statusCode,
streamedResponse: streamedResponse,
);
}
final makeRequest = callType == ApiCallType.GET final makeRequest = callType == ApiCallType.GET
? (client != null ? client.get : http.get) ? (client != null ? client.get : http.get)
: (client != null ? client.delete : http.delete); : (client != null ? client.delete : http.delete);
@ -209,7 +231,8 @@ class ApiManager {
bool returnBody, bool returnBody,
bool encodeBodyUtf8, bool encodeBodyUtf8,
bool decodeUtf8, bool decodeUtf8,
bool alwaysAllowBody, { bool alwaysAllowBody,
bool isStreamingApi, {
http.Client? client, http.Client? client,
}) async { }) async {
assert( assert(
@ -219,6 +242,20 @@ class ApiManager {
); );
final postBody = final postBody =
createBody(headers, params, body, bodyType, encodeBodyUtf8); createBody(headers, params, body, bodyType, encodeBodyUtf8);
if (isStreamingApi) {
client ??= http.Client();
final request =
http.Request(type.toString().split('.').last, Uri.parse(apiUrl))
..headers.addAll(toStringMap(headers));
request.body = postBody;
final streamedResponse = await getStreamedResponse(request);
return ApiCallResponse(
null,
streamedResponse.headers,
streamedResponse.statusCode,
streamedResponse: streamedResponse,
);
}
if (bodyType == BodyType.MULTIPART) { if (bodyType == BodyType.MULTIPART) {
return multipartRequest(type, apiUrl, headers, params, returnBody, return multipartRequest(type, apiUrl, headers, params, returnBody,
@ -352,6 +389,7 @@ class ApiManager {
decodeUtf8: options.decodeUtf8, decodeUtf8: options.decodeUtf8,
alwaysAllowBody: options.alwaysAllowBody, alwaysAllowBody: options.alwaysAllowBody,
cache: options.cache, cache: options.cache,
isStreamingApi: options.isStreamingApi,
options: options, options: options,
); );
@ -368,6 +406,7 @@ class ApiManager {
bool decodeUtf8 = false, bool decodeUtf8 = false,
bool alwaysAllowBody = false, bool alwaysAllowBody = false,
bool cache = false, bool cache = false,
bool isStreamingApi = false,
ApiCallOptions? options, ApiCallOptions? options,
http.Client? client, http.Client? client,
}) async { }) async {
@ -385,6 +424,7 @@ class ApiManager {
decodeUtf8: decodeUtf8, decodeUtf8: decodeUtf8,
alwaysAllowBody: alwaysAllowBody, alwaysAllowBody: alwaysAllowBody,
cache: cache, cache: cache,
isStreamingApi: isStreamingApi,
); );
// Modify for your specific needs if this differs from your API. // Modify for your specific needs if this differs from your API.
if (_accessToken != null) { if (_accessToken != null) {
@ -411,6 +451,7 @@ class ApiManager {
params, params,
returnBody, returnBody,
decodeUtf8, decodeUtf8,
isStreamingApi,
client: client, client: client,
); );
break; break;
@ -427,6 +468,7 @@ class ApiManager {
encodeBodyUtf8, encodeBodyUtf8,
decodeUtf8, decodeUtf8,
alwaysAllowBody, alwaysAllowBody,
isStreamingApi,
client: client, client: client,
) )
: await urlRequest( : await urlRequest(
@ -436,6 +478,7 @@ class ApiManager {
params, params,
returnBody, returnBody,
decodeUtf8, decodeUtf8,
isStreamingApi,
client: client, client: client,
); );
break; break;
@ -453,6 +496,7 @@ class ApiManager {
encodeBodyUtf8, encodeBodyUtf8,
decodeUtf8, decodeUtf8,
alwaysAllowBody, alwaysAllowBody,
isStreamingApi,
client: client, client: client,
); );
break; break;

View File

@ -0,0 +1,4 @@
import 'package:http/http.dart';
Future<StreamedResponse> getStreamedResponse(Request request) =>
Client().send(request);

View File

@ -77,11 +77,3 @@ List<Color>? getColorsList(dynamic value) =>
List<T>? getDataList<T>(dynamic value) => List<T>? getDataList<T>(dynamic value) =>
value is! List ? null : value.map((e) => castToType<T>(e)!).toList(); value is! List ? null : value.map((e) => castToType<T>(e)!).toList();
extension MapDataExtensions on Map<String, dynamic> {
Map<String, dynamic> get withoutNulls => Map.fromEntries(
entries
.where((e) => e.value != null)
.map((e) => MapEntry(e.key, e.value!)),
);
}

View File

@ -62,6 +62,23 @@ class _ThrowExceptionWidgetState extends State<ThrowExceptionWidget>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(10.0, 0.0, 10.0, 0.0),
child: Container(
height: 400.0,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).primaryBackground,
borderRadius: const BorderRadius.only(
bottomLeft: Radius.circular(10.0),
bottomRight: Radius.circular(10.0),
topLeft: Radius.circular(10.0),
topRight: Radius.circular(10.0),
),
),
child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
@ -94,7 +111,8 @@ class _ThrowExceptionWidgetState extends State<ThrowExceptionWidget>
'e58xxxiq' /* ERRO */, 'e58xxxiq' /* ERRO */,
), ),
style: FlutterFlowTheme.of(context).bodyMedium.override( style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily, fontFamily:
FlutterFlowTheme.of(context).bodyMediumFamily,
fontSize: 20.0, fontSize: 20.0,
letterSpacing: 0.0, letterSpacing: 0.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@ -103,23 +121,30 @@ class _ThrowExceptionWidgetState extends State<ThrowExceptionWidget>
), ),
), ),
Padding( Padding(
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 0.0), padding:
const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 0.0),
child: Text( child: Text(
valueOrDefault<String>( valueOrDefault<String>(
widget.msg, widget.msg,
'Message Not Found', 'Message Not Found',
), ),
style: FlutterFlowTheme.of(context).bodyMedium.override( style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily, fontFamily:
FlutterFlowTheme.of(context).bodyMediumFamily,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily), FlutterFlowTheme.of(context)
.bodyMediumFamily),
), ),
), ),
), ),
].addToStart(const SizedBox(height: 50.0)), ].addToStart(const SizedBox(height: 50.0)),
), ),
], ],
),
),
),
],
); );
} }
} }

View File

@ -933,6 +933,7 @@ class _ScheduleVisitDetailWidgetState extends State<ScheduleVisitDetailWidget> {
obs: widget.visitObsStr, obs: widget.visitObsStr,
cliID: FFAppState().cliUUID, cliID: FFAppState().cliUUID,
); );
if (PhpGroup.postScheduleVisitCall.error( if (PhpGroup.postScheduleVisitCall.error(
(_model.postScheduleVisit?.jsonBody ?? ''), (_model.postScheduleVisit?.jsonBody ?? ''),
) == ) ==

View File

@ -793,6 +793,7 @@ class _ViewVisitDetailWidgetState extends State<ViewVisitDetailWidget> {
atividade: 'cancelaVisita', atividade: 'cancelaVisita',
idVisita: widget.visitIdStr, idVisita: widget.visitIdStr,
); );
if (PhpGroup.deleteVisitCall.error( if (PhpGroup.deleteVisitCall.error(
(_model.deleteVisit?.jsonBody ?? ''), (_model.deleteVisit?.jsonBody ?? ''),
) == ) ==

View File

@ -242,6 +242,7 @@ class _ForgotPasswordTemplateComponentWidgetState
_model.req = await PhpGroup.forgotPasswordCall.call( _model.req = await PhpGroup.forgotPasswordCall.call(
email: _model.emailAddressTextController.text, email: _model.emailAddressTextController.text,
); );
shouldSetState = true; shouldSetState = true;
if (PhpGroup.forgotPasswordCall.error( if (PhpGroup.forgotPasswordCall.error(
(_model.req?.jsonBody ?? ''), (_model.req?.jsonBody ?? ''),

View File

@ -722,6 +722,7 @@ class _RegisiterVistorTemplateComponentWidgetState
: 'P', : 'P',
foto: 'base64;jpeg,klajsalkjslkajslkajl', foto: 'base64;jpeg,klajsalkjslkajslkajl',
); );
if (PhpGroup.postScheduleVisitorCall.error( if (PhpGroup.postScheduleVisitorCall.error(
(_model.registerVisitor?.jsonBody ?? ''), (_model.registerVisitor?.jsonBody ?? ''),
) == ) ==

View File

@ -11,16 +11,30 @@ export 'visit_request_template_component_model.dart';
class VisitRequestTemplateComponentWidget extends StatefulWidget { class VisitRequestTemplateComponentWidget extends StatefulWidget {
const VisitRequestTemplateComponentWidget({ const VisitRequestTemplateComponentWidget({
super.key, super.key,
required this.name, required this.vteName,
required this.reason, required this.vteReason,
required this.message, required this.vteMsg,
required this.document, required this.vteDocument,
required this.cliUUID,
required this.vteUUID,
required this.vawName,
required this.msgUUID,
required this.vawRef,
required this.vawUUID,
required this.vawDestino,
}); });
final String? name; final String? vteName;
final String? reason; final String? vteReason;
final String? message; final String? vteMsg;
final String? document; final String? vteDocument;
final String? cliUUID;
final String? vteUUID;
final String? vawName;
final String? msgUUID;
final String? vawRef;
final String? vawUUID;
final String? vawDestino;
@override @override
State<VisitRequestTemplateComponentWidget> createState() => State<VisitRequestTemplateComponentWidget> createState() =>
@ -42,13 +56,13 @@ class _VisitRequestTemplateComponentWidgetState
super.initState(); super.initState();
_model = createModel(context, () => VisitRequestTemplateComponentModel()); _model = createModel(context, () => VisitRequestTemplateComponentModel());
_model.textController1 ??= TextEditingController(text: widget.name); _model.textController1 ??= TextEditingController(text: widget.vteName);
_model.textFieldFocusNode1 ??= FocusNode(); _model.textFieldFocusNode1 ??= FocusNode();
_model.textController2 ??= TextEditingController(text: widget.reason); _model.textController2 ??= TextEditingController(text: widget.vteReason);
_model.textFieldFocusNode2 ??= FocusNode(); _model.textFieldFocusNode2 ??= FocusNode();
_model.textController3 ??= TextEditingController(text: widget.message); _model.textController3 ??= TextEditingController(text: widget.vteMsg);
_model.textFieldFocusNode3 ??= FocusNode(); _model.textFieldFocusNode3 ??= FocusNode();
_model.textController4 ??= TextEditingController(); _model.textController4 ??= TextEditingController();
@ -71,6 +85,7 @@ class _VisitRequestTemplateComponentWidgetState
child: Padding( child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(10.0, 0.0, 10.0, 0.0), padding: const EdgeInsetsDirectional.fromSTEB(10.0, 0.0, 10.0, 0.0),
child: Container( child: Container(
width: MediaQuery.sizeOf(context).width * 0.9,
decoration: BoxDecoration( decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).primaryBackground, color: FlutterFlowTheme.of(context).primaryBackground,
borderRadius: const BorderRadius.only( borderRadius: const BorderRadius.only(
@ -90,17 +105,17 @@ class _VisitRequestTemplateComponentWidgetState
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Container( Container(
width: 200.0, width: 150.0,
height: 200.0, height: 150.0,
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration( decoration: const BoxDecoration(
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: CachedNetworkImage( child: CachedNetworkImage(
fadeInDuration: const Duration(milliseconds: 500), fadeInDuration: const Duration(milliseconds: 100),
fadeOutDuration: const Duration(milliseconds: 500), fadeOutDuration: const Duration(milliseconds: 100),
imageUrl: valueOrDefault<String>( imageUrl: valueOrDefault<String>(
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.document}&tipo=E', 'https://freaccess.com.br/freaccess/getImage.php?devUUID=${FFAppState().devUUID}&userUUID=${FFAppState().userUUID}&cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.vteDocument}&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',
), ),
fit: BoxFit.cover, fit: BoxFit.cover,
@ -120,6 +135,7 @@ class _VisitRequestTemplateComponentWidgetState
readOnly: true, readOnly: true,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'ivfw4j04' /* Nome */, 'ivfw4j04' /* Nome */,
), ),
@ -143,34 +159,10 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily), FlutterFlowTheme.of(context).labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: InputBorder.none,
borderSide: BorderSide( focusedBorder: InputBorder.none,
color: FlutterFlowTheme.of(context).accent1, errorBorder: InputBorder.none,
width: 0.5, focusedErrorBorder: InputBorder.none,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).primary,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
suffixIcon: Icon( suffixIcon: Icon(
Icons.person, Icons.person,
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
@ -184,6 +176,7 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily), FlutterFlowTheme.of(context).bodyMediumFamily),
), ),
textAlign: TextAlign.start,
maxLines: null, maxLines: null,
keyboardType: TextInputType.name, keyboardType: TextInputType.name,
validator: validator:
@ -200,6 +193,7 @@ class _VisitRequestTemplateComponentWidgetState
readOnly: true, readOnly: true,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'ndzkqehm' /* Motivo */, 'ndzkqehm' /* Motivo */,
), ),
@ -223,34 +217,10 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily), FlutterFlowTheme.of(context).labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: InputBorder.none,
borderSide: BorderSide( focusedBorder: InputBorder.none,
color: FlutterFlowTheme.of(context).accent1, errorBorder: InputBorder.none,
width: 0.5, focusedErrorBorder: InputBorder.none,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).primary,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
suffixIcon: Icon( suffixIcon: Icon(
Icons.history_edu, Icons.history_edu,
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
@ -264,6 +234,7 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily), FlutterFlowTheme.of(context).bodyMediumFamily),
), ),
textAlign: TextAlign.start,
maxLines: null, maxLines: null,
keyboardType: TextInputType.name, keyboardType: TextInputType.name,
validator: validator:
@ -281,6 +252,7 @@ class _VisitRequestTemplateComponentWidgetState
readOnly: true, readOnly: true,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'kt87omsz' /* Mensagem */, 'kt87omsz' /* Mensagem */,
), ),
@ -303,34 +275,10 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).labelMediumFamily), FlutterFlowTheme.of(context).labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: InputBorder.none,
borderSide: BorderSide( focusedBorder: InputBorder.none,
color: FlutterFlowTheme.of(context).accent1, errorBorder: InputBorder.none,
width: 0.5, focusedErrorBorder: InputBorder.none,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).primary,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 0.5,
),
borderRadius: BorderRadius.circular(10.0),
),
suffixIcon: Icon( suffixIcon: Icon(
Icons.message, Icons.message,
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
@ -344,12 +292,14 @@ class _VisitRequestTemplateComponentWidgetState
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily), FlutterFlowTheme.of(context).bodyMediumFamily),
), ),
textAlign: TextAlign.start,
validator: validator:
_model.textController3Validator.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, 20.0, 24.0, 20.0),
child: TextFormField( child: TextFormField(
controller: _model.textController4, controller: _model.textController4,
focusNode: _model.textFieldFocusNode4, focusNode: _model.textFieldFocusNode4,
@ -357,6 +307,7 @@ class _VisitRequestTemplateComponentWidgetState
textInputAction: TextInputAction.next, textInputAction: TextInputAction.next,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'ssz899es' /* Pergunta */, 'ssz899es' /* Pergunta */,
), ),
@ -433,9 +384,9 @@ class _VisitRequestTemplateComponentWidgetState
borderRadius: 20.0, borderRadius: 20.0,
borderWidth: 1.0, borderWidth: 1.0,
buttonSize: 40.0, buttonSize: 40.0,
fillColor: FlutterFlowTheme.of(context).success, fillColor: FlutterFlowTheme.of(context).error,
icon: Icon( icon: Icon(
Icons.done, Icons.close,
color: FlutterFlowTheme.of(context).primaryBackground, color: FlutterFlowTheme.of(context).primaryBackground,
size: 24.0, size: 24.0,
), ),
@ -447,9 +398,9 @@ class _VisitRequestTemplateComponentWidgetState
borderRadius: 20.0, borderRadius: 20.0,
borderWidth: 1.0, borderWidth: 1.0,
buttonSize: 40.0, buttonSize: 40.0,
fillColor: FlutterFlowTheme.of(context).error, fillColor: FlutterFlowTheme.of(context).success,
icon: Icon( icon: Icon(
Icons.close, Icons.done,
color: FlutterFlowTheme.of(context).primaryBackground, color: FlutterFlowTheme.of(context).primaryBackground,
size: 24.0, size: 24.0,
), ),
@ -460,7 +411,7 @@ class _VisitRequestTemplateComponentWidgetState
].divide(const SizedBox(width: 20.0)), ].divide(const SizedBox(width: 20.0)),
), ),
] ]
.divide(const SizedBox(height: 20.0)) .divide(const SizedBox(height: 10.0))
.addToStart(const SizedBox(height: 20.0)) .addToStart(const SizedBox(height: 20.0))
.addToEnd(const SizedBox(height: 20.0)), .addToEnd(const SizedBox(height: 20.0)),
), ),

View File

@ -107,6 +107,7 @@ class _VisitorSearchModalTemplateComponentWidgetState
atividade: 'getVisitante', atividade: 'getVisitante',
documento: _model.textController.text, documento: _model.textController.text,
); );
if (PhpGroup.getVisitorByDocCall.vistanteId( if (PhpGroup.getVisitorByDocCall.vistanteId(
(_model.getVisitorByDoc?.jsonBody ?? ''), (_model.getVisitorByDoc?.jsonBody ?? ''),
) != ) !=

View File

@ -453,6 +453,14 @@ extension ListFilterExt<T> on Iterable<T?> {
List<T> get withoutNulls => where((s) => s != null).map((e) => e!).toList(); List<T> get withoutNulls => where((s) => s != null).map((e) => e!).toList();
} }
extension MapFilterExtensions<T> on Map<String, T?> {
Map<String, T> get withoutNulls => Map.fromEntries(
entries
.where((e) => e.value != null)
.map((e) => MapEntry(e.key, e.value as T)),
);
}
extension MapListContainsExt on List<dynamic> { extension MapListContainsExt on List<dynamic> {
bool containsMap(dynamic map) => map is Map bool containsMap(dynamic map) => map is Map
? any((e) => e is Map && const DeepCollectionEquality().equals(e, map)) ? any((e) => e is Map && const DeepCollectionEquality().equals(e, map))

View File

@ -4,6 +4,7 @@ import 'package:auto_size_text/auto_size_text.dart';
class FFButtonOptions { class FFButtonOptions {
const FFButtonOptions({ const FFButtonOptions({
this.textAlign,
this.textStyle, this.textStyle,
this.elevation, this.elevation,
this.height, this.height,
@ -25,6 +26,7 @@ class FFButtonOptions {
this.maxLines, this.maxLines,
}); });
final TextAlign? textAlign;
final TextStyle? textStyle; final TextStyle? textStyle;
final double? elevation; final double? elevation;
final double? height; final double? height;
@ -98,6 +100,7 @@ class _FFButtonWidgetState extends State<FFButtonWidget> {
text ?? '', text ?? '',
style: style:
text == null ? null : widget.options.textStyle?.withoutColor(), text == null ? null : widget.options.textStyle?.withoutColor(),
textAlign: widget.options.textAlign,
maxLines: maxLines, maxLines: maxLines,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
); );

View File

@ -8,3 +8,16 @@ class FormFieldController<T> extends ValueNotifier<T?> {
void reset() => value = initialValue; void reset() => value = initialValue;
void update() => notifyListeners(); void update() => notifyListeners();
} }
// If the initial value is a list (which it is for multiselect),
// we need to use this controller to avoid a pass by reference issue
// that can result in the initial value being modified.
class FormListFieldController<T> extends FormFieldController<List<T>> {
final List<T>? _initialListValue;
FormListFieldController(super.initialValue)
: _initialListValue = List<T>.from(initialValue ?? []);
@override
void reset() => value = List<T>.from(_initialListValue ?? []);
}

View File

@ -174,6 +174,10 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
'pt': 'Nome', 'pt': 'Nome',
'en': 'Name', 'en': 'Name',
}, },
'rl8tvwnr': {
'pt': 'Documento',
'en': 'Document',
},
'yp23q90m': { 'yp23q90m': {
'pt': 'Selecione o tipo:', 'pt': 'Selecione o tipo:',
'en': 'Select type:', 'en': 'Select type:',
@ -194,10 +198,6 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
'pt': 'Search for an item...', 'pt': 'Search for an item...',
'en': '', 'en': '',
}, },
'rl8tvwnr': {
'pt': 'Documento',
'en': 'Document',
},
'bqpucwh0': { 'bqpucwh0': {
'pt': 'Contatos', 'pt': 'Contatos',
'en': 'Contacts', 'en': 'Contacts',

View File

@ -17,13 +17,13 @@ class RegisterVisitorPageModel
FocusNode? textFieldFocusNode1; FocusNode? textFieldFocusNode1;
TextEditingController? textController1; TextEditingController? textController1;
String? Function(BuildContext, String?)? textController1Validator; String? Function(BuildContext, String?)? textController1Validator;
// State field(s) for DropDown widget.
String? dropDownValue;
FormFieldController<String>? dropDownValueController;
// State field(s) for TextField widget. // State field(s) for TextField widget.
FocusNode? textFieldFocusNode2; FocusNode? textFieldFocusNode2;
TextEditingController? textController2; TextEditingController? textController2;
String? Function(BuildContext, String?)? textController2Validator; String? Function(BuildContext, String?)? textController2Validator;
// State field(s) for DropDown widget.
String? dropDownValue;
FormFieldController<String>? dropDownValueController;
// State field(s) for TextField widget. // State field(s) for TextField widget.
FocusNode? textFieldFocusNode3; FocusNode? textFieldFocusNode3;
TextEditingController? textController3; TextEditingController? textController3;

View File

@ -67,6 +67,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
child: Align( child: Align(
alignment: const AlignmentDirectional(0.0, 1.0), alignment: const AlignmentDirectional(0.0, 1.0),
child: Container( child: Container(
width: double.infinity,
height: double.infinity,
decoration: BoxDecoration( decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).primaryBackground, color: FlutterFlowTheme.of(context).primaryBackground,
borderRadius: const BorderRadius.only( borderRadius: const BorderRadius.only(
@ -76,8 +78,6 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
topRight: Radius.circular(25.0), topRight: Radius.circular(25.0),
), ),
), ),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 30.0, 0.0, 0.0),
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@ -87,7 +87,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
alignment: const AlignmentDirectional(-1.0, -1.0), alignment: const AlignmentDirectional(-1.0, -1.0),
child: Padding( child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding: const EdgeInsetsDirectional.fromSTEB(
20.0, 0.0, 0.0, 20.0), 20.0, 20.0, 0.0, 20.0),
child: Text( child: Text(
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'q8cct5lk' /* Cadastrar Visitante */, 'q8cct5lk' /* Cadastrar Visitante */,
@ -152,8 +152,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
selectedMedia.every((m) => selectedMedia.every((m) =>
validateFileFormat( validateFileFormat(
m.storagePath, context))) { m.storagePath, context))) {
setState(() => setState(
_model.isDataUploading = true); () => _model.isDataUploading = true);
var selectedUploadedFiles = var selectedUploadedFiles =
<FFUploadedFile>[]; <FFUploadedFile>[];
@ -169,8 +169,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.split('/') .split('/')
.last, .last,
bytes: m.bytes, bytes: m.bytes,
height: height: m.dimensions?.height,
m.dimensions?.height,
width: m.dimensions?.width, width: m.dimensions?.width,
blurHash: m.blurHash, blurHash: m.blurHash,
)) ))
@ -186,8 +185,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
_model.uploadedLocalFile = _model.uploadedLocalFile =
selectedUploadedFiles.first; selectedUploadedFiles.first;
}); });
showUploadMessage( showUploadMessage(context, 'Success!');
context, 'Success!');
} else { } else {
setState(() {}); setState(() {});
showUploadMessage( showUploadMessage(
@ -199,8 +197,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
text: '', text: '',
icon: Icon( icon: Icon(
Icons.photo_camera, Icons.photo_camera,
color: color: FlutterFlowTheme.of(context).accent1,
FlutterFlowTheme.of(context).accent1,
size: 30.0, size: 30.0,
), ),
options: FFButtonOptions( options: FFButtonOptions(
@ -208,8 +205,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
height: 80.0, height: 80.0,
padding: const EdgeInsetsDirectional.fromSTEB( padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 0.0, 0.0, 0.0), 0.0, 0.0, 0.0, 0.0),
iconPadding: iconPadding: const EdgeInsetsDirectional.fromSTEB(
const EdgeInsetsDirectional.fromSTEB(
14.0, 0.0, 0.0, 20.0), 14.0, 0.0, 0.0, 20.0),
color: FlutterFlowTheme.of(context) color: FlutterFlowTheme.of(context)
.primaryBackground, .primaryBackground,
@ -229,8 +225,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.titleSmallFamily), .titleSmallFamily),
), ),
borderSide: BorderSide( borderSide: BorderSide(
color: FlutterFlowTheme.of(context) color:
.accent1, FlutterFlowTheme.of(context).accent1,
width: 0.5, width: 0.5,
), ),
borderRadius: BorderRadius.circular(8.0), borderRadius: BorderRadius.circular(8.0),
@ -272,7 +268,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
alignment: const AlignmentDirectional(-1.0, 0.0), alignment: const AlignmentDirectional(-1.0, 0.0),
child: Padding( child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding: const EdgeInsetsDirectional.fromSTEB(
20.0, 30.0, 0.0, 30.0), 20.0, 30.0, 0.0, 15.0),
child: Text( child: Text(
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'zazj5d8b' /* Preencha o formulário com os d... */, 'zazj5d8b' /* Preencha o formulário com os d... */,
@ -284,16 +280,16 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily, .bodyMediumFamily,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.bodyMediumFamily), .bodyMediumFamily),
), ),
), ),
), ),
), ),
Padding( Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding:
24.0, 0.0, 24.0, 0.0), const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
child: TextFormField( child: TextFormField(
controller: _model.textController1, controller: _model.textController1,
focusNode: _model.textFieldFocusNode1, focusNode: _model.textFieldFocusNode1,
@ -301,6 +297,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
textInputAction: TextInputAction.next, textInputAction: TextInputAction.next,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'v7g73yik' /* Nome */, 'v7g73yik' /* Nome */,
), ),
@ -309,11 +306,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
hintStyle: FlutterFlowTheme.of(context) hintStyle: FlutterFlowTheme.of(context)
@ -321,11 +317,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
@ -361,11 +356,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
), ),
), ),
style: FlutterFlowTheme.of(context) style: FlutterFlowTheme.of(context).bodyMedium.override(
.bodyMedium fontFamily:
.override( FlutterFlowTheme.of(context).bodyMediumFamily,
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
@ -378,102 +371,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.asValidator(context), .asValidator(context),
), ),
), ),
Align(
alignment: const AlignmentDirectional(0.0, 0.0),
child: Container(
decoration: const BoxDecoration(),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 0.0, 0.0, 20.0),
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding( Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding:
10.0, 20.0, 10.0, 0.0), const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
child: Text(
FFLocalizations.of(context).getText(
'yp23q90m' /* Selecione o tipo: */,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
FlutterFlowTheme.of(context)
.bodyMediumFamily,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.bodyMediumFamily),
),
),
),
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 20.0, 0.0, 5.0),
child: FlutterFlowDropDown<String>(
controller:
_model.dropDownValueController ??=
FormFieldController<String>(null),
options: [
FFLocalizations.of(context).getText(
'n8vddmcq' /* Visitante */,
),
FFLocalizations.of(context).getText(
'9luaa09e' /* Prestador de Serviço */,
)
],
onChanged: (val) => setState(
() => _model.dropDownValue = val),
width: 200.0,
height: 48.0,
textStyle: 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),
),
hintText:
FFLocalizations.of(context).getText(
'pmezihb4' /* Selecione... */,
),
icon: Icon(
Icons.keyboard_arrow_down_rounded,
color: FlutterFlowTheme.of(context)
.primaryText,
size: 24.0,
),
elevation: 2.0,
borderColor:
FlutterFlowTheme.of(context).accent1,
borderWidth: 0.5,
borderRadius: 8.0,
margin: const EdgeInsetsDirectional.fromSTEB(
16.0, 4.0, 16.0, 4.0),
hidesUnderline: true,
isOverButton: true,
isSearchable: false,
isMultiSelect: false,
),
),
],
),
),
),
),
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
24.0, 0.0, 24.0, 0.0),
child: TextFormField( child: TextFormField(
controller: _model.textController2, controller: _model.textController2,
focusNode: _model.textFieldFocusNode2, focusNode: _model.textFieldFocusNode2,
@ -482,6 +382,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
textInputAction: TextInputAction.next, textInputAction: TextInputAction.next,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'rl8tvwnr' /* Documento */, 'rl8tvwnr' /* Documento */,
), ),
@ -490,11 +391,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
hintStyle: FlutterFlowTheme.of(context) hintStyle: FlutterFlowTheme.of(context)
@ -503,8 +403,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
@ -540,11 +440,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
), ),
), ),
style: FlutterFlowTheme.of(context) style: FlutterFlowTheme.of(context).bodyMedium.override(
.bodyMedium fontFamily:
.override( FlutterFlowTheme.of(context).bodyMediumFamily,
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
@ -555,11 +453,100 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.asValidator(context), .asValidator(context),
), ),
), ),
Padding(
padding:
const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 10.0),
child: Container(
width: MediaQuery.sizeOf(context).width * 0.95,
decoration: const BoxDecoration(),
child: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 0.0, 0.0, 7.0),
child: Text(
FFLocalizations.of(context).getText(
'yp23q90m' /* Selecione o tipo: */,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.bodyMediumFamily),
),
),
),
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 0.0, 0.0, 5.0),
child: FlutterFlowDropDown<String>(
controller: _model.dropDownValueController ??=
FormFieldController<String>(null),
options: [
FFLocalizations.of(context).getText(
'n8vddmcq' /* Visitante */,
),
FFLocalizations.of(context).getText(
'9luaa09e' /* Prestador de Serviço */,
)
],
onChanged: (val) =>
setState(() => _model.dropDownValue = val),
width: 200.0,
height: 44.0,
textStyle: 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),
),
hintText: FFLocalizations.of(context).getText(
'pmezihb4' /* Selecione... */,
),
icon: Icon(
Icons.keyboard_arrow_down_rounded,
color:
FlutterFlowTheme.of(context).primaryText,
size: 24.0,
),
elevation: 2.0,
borderColor:
FlutterFlowTheme.of(context).accent1,
borderWidth: 0.5,
borderRadius: 8.0,
margin: const EdgeInsetsDirectional.fromSTEB(
16.0, 0.0, 16.0, 0.0),
hidesUnderline: true,
isOverButton: true,
isSearchable: false,
isMultiSelect: false,
),
),
]
.divide(const SizedBox(width: 19.0))
.addToStart(const SizedBox(width: 30.0)),
),
),
),
Align( Align(
alignment: const AlignmentDirectional(-1.0, 0.0), alignment: const AlignmentDirectional(-1.0, 0.0),
child: Padding( child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding: const EdgeInsetsDirectional.fromSTEB(
20.0, 30.0, 0.0, 30.0), 20.0, 0.0, 0.0, 15.0),
child: Text( child: Text(
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'bqpucwh0' /* Contatos */, 'bqpucwh0' /* Contatos */,
@ -571,16 +558,16 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily, .bodyMediumFamily,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.bodyMediumFamily), .bodyMediumFamily),
), ),
), ),
), ),
), ),
Padding( Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding:
24.0, 0.0, 24.0, 0.0), const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
child: TextFormField( child: TextFormField(
controller: _model.textController3, controller: _model.textController3,
focusNode: _model.textFieldFocusNode3, focusNode: _model.textFieldFocusNode3,
@ -588,6 +575,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
textInputAction: TextInputAction.next, textInputAction: TextInputAction.next,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'h84ls2r6' /* Telefone */, 'h84ls2r6' /* Telefone */,
), ),
@ -596,11 +584,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
hintStyle: FlutterFlowTheme.of(context) hintStyle: FlutterFlowTheme.of(context)
@ -608,11 +595,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
@ -648,11 +634,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
), ),
), ),
style: FlutterFlowTheme.of(context) style: FlutterFlowTheme.of(context).bodyMedium.override(
.bodyMedium fontFamily:
.override( FlutterFlowTheme.of(context).bodyMediumFamily,
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
@ -664,7 +648,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.all(24.0), padding:
const EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
child: TextFormField( child: TextFormField(
controller: _model.textController4, controller: _model.textController4,
focusNode: _model.textFieldFocusNode4, focusNode: _model.textFieldFocusNode4,
@ -672,6 +657,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
textInputAction: TextInputAction.done, textInputAction: TextInputAction.done,
obscureText: false, obscureText: false,
decoration: InputDecoration( decoration: InputDecoration(
isDense: true,
labelText: FFLocalizations.of(context).getText( labelText: FFLocalizations.of(context).getText(
'fqp7qmka' /* Email */, 'fqp7qmka' /* Email */,
), ),
@ -680,11 +666,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
hintStyle: FlutterFlowTheme.of(context) hintStyle: FlutterFlowTheme.of(context)
@ -692,11 +677,10 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
color: color: FlutterFlowTheme.of(context).primaryText,
FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap().containsKey(
.containsKey(FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.labelMediumFamily), .labelMediumFamily),
), ),
enabledBorder: OutlineInputBorder( enabledBorder: OutlineInputBorder(
@ -732,11 +716,9 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).accent1,
), ),
), ),
style: FlutterFlowTheme.of(context) style: FlutterFlowTheme.of(context).bodyMedium.override(
.bodyMedium fontFamily:
.override( FlutterFlowTheme.of(context).bodyMediumFamily,
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey( useGoogleFonts: GoogleFonts.asMap().containsKey(
@ -751,8 +733,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
Align( Align(
alignment: const AlignmentDirectional(0.0, 1.0), alignment: const AlignmentDirectional(0.0, 1.0),
child: Padding( child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB( padding:
0.0, 50.0, 0.0, 0.0), const EdgeInsetsDirectional.fromSTEB(0.0, 50.0, 0.0, 0.0),
child: FFButtonWidget( child: FFButtonWidget(
onPressed: () async { onPressed: () async {
if (((_model.uploadedLocalFile.bytes if (((_model.uploadedLocalFile.bytes
@ -777,6 +759,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
tipo: 'V', tipo: 'V',
foto: 'base64;jpeg,klajsalkjslkajslkajl', foto: 'base64;jpeg,klajsalkjslkajslkajl',
); );
if (PhpGroup.postScheduleVisitorCall.error( if (PhpGroup.postScheduleVisitorCall.error(
(_model.scheduleVisitor?.jsonBody ?? ''), (_model.scheduleVisitor?.jsonBody ?? ''),
) == ) ==
@ -801,8 +784,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
onTap: () => _model onTap: () => _model
.unfocusNode.canRequestFocus .unfocusNode.canRequestFocus
? FocusScope.of(context) ? FocusScope.of(context)
.requestFocus( .requestFocus(_model.unfocusNode)
_model.unfocusNode)
: FocusScope.of(context).unfocus(), : FocusScope.of(context).unfocus(),
child: Padding( child: Padding(
padding: padding:
@ -810,8 +792,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
child: ThrowExceptionWidget( child: ThrowExceptionWidget(
msg: msg:
'\\devUUID=${FFAppState().devUUID}\\userUUID=${FFAppState().userUUID}\\cliID=${FFAppState().cliUUID}\\Documento=${_model.textController2.text}\\Nome=${_model.textController1.text}\\dropdown${_model.dropDownValue}\\${PhpGroup.postScheduleVisitorCall.errorMsg( '\\devUUID=${FFAppState().devUUID}\\userUUID=${FFAppState().userUUID}\\cliID=${FFAppState().cliUUID}\\Documento=${_model.textController2.text}\\Nome=${_model.textController1.text}\\dropdown${_model.dropDownValue}\\${PhpGroup.postScheduleVisitorCall.errorMsg(
(_model.scheduleVisitor (_model.scheduleVisitor?.jsonBody ??
?.jsonBody ??
''), ''),
)}', )}',
), ),
@ -834,8 +815,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
.requestFocus(_model.unfocusNode) .requestFocus(_model.unfocusNode)
: FocusScope.of(context).unfocus(), : FocusScope.of(context).unfocus(),
child: Padding( child: Padding(
padding: padding: MediaQuery.viewInsetsOf(context),
MediaQuery.viewInsetsOf(context),
child: ThrowExceptionWidget( child: ThrowExceptionWidget(
msg: msg:
'Você esqueceu de adicionar algum dado obrigatório. Verifique se a imagem, nome, tipo e documento estão foram preenchidos corretamente.- devUUID=${FFAppState().devUUID}- userUUID=${FFAppState().userUUID}- cliID=${FFAppState().cliUUID}- Documento=${_model.textController2.text}- Nome=${_model.textController1.text}- Tipo=${_model.dropDownValue}', 'Você esqueceu de adicionar algum dado obrigatório. Verifique se a imagem, nome, tipo e documento estão foram preenchidos corretamente.- devUUID=${FFAppState().devUUID}- userUUID=${FFAppState().userUUID}- cliID=${FFAppState().cliUUID}- Documento=${_model.textController2.text}- Nome=${_model.textController1.text}- Tipo=${_model.dropDownValue}',
@ -852,7 +832,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
'okbw0aiu' /* Cadastrar */, 'okbw0aiu' /* Cadastrar */,
), ),
options: FFButtonOptions( options: FFButtonOptions(
width: double.infinity, width: 250.0,
height: 36.0, height: 36.0,
padding: const EdgeInsetsDirectional.fromSTEB( padding: const EdgeInsetsDirectional.fromSTEB(
80.0, 0.0, 80.0, 0.0), 80.0, 0.0, 80.0, 0.0),
@ -867,8 +847,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
color: FlutterFlowTheme.of(context).info, color: FlutterFlowTheme.of(context).info,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap()
.containsKey( .containsKey(FlutterFlowTheme.of(context)
FlutterFlowTheme.of(context)
.titleSmallFamily), .titleSmallFamily),
), ),
borderSide: const BorderSide( borderSide: const BorderSide(
@ -876,8 +855,8 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
width: 30.0, width: 30.0,
), ),
borderRadius: const BorderRadius.only( borderRadius: const BorderRadius.only(
bottomLeft: Radius.circular(0.0), bottomLeft: Radius.circular(15.0),
bottomRight: Radius.circular(0.0), bottomRight: Radius.circular(15.0),
topLeft: Radius.circular(15.0), topLeft: Radius.circular(15.0),
topRight: Radius.circular(15.0), topRight: Radius.circular(15.0),
), ),
@ -885,8 +864,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
), ),
), ),
), ),
], ].divide(const SizedBox(height: 10.0)),
),
), ),
), ),
), ),

View File

@ -857,6 +857,7 @@ class _ScheduleProvisionalVisitPageWidgetState
nome: _model.textController2.text, nome: _model.textController2.text,
proID: FFAppState().ownerUUID, proID: FFAppState().ownerUUID,
); );
if (PhpGroup.postProvVisitSchedulingCall.error( if (PhpGroup.postProvVisitSchedulingCall.error(
(_model.provisionalVisitScheduling?.jsonBody ?? ''), (_model.provisionalVisitScheduling?.jsonBody ?? ''),
) == ) ==