From 8e9f9ed589d5f682913aa8cc74ddddc5cabe36fd Mon Sep 17 00:00:00 2001
From: FlutterFlow <140657486+FlutterFlowEng@users.noreply.github.com>
Date: Thu, 25 Jul 2024 15:04:38 +0000
Subject: [PATCH] fix: Form de Login do APP
---
ios/Flutter/AppFrameworkInfo.plist | 2 +-
ios/Podfile | 2 +-
ios/Runner.xcodeproj/project.pbxproj | 14 +-
.../sign_in_template_component_model.dart | 4 +-
.../sign_in_template_component_widget.dart | 62 +++++--
lib/flutter_flow/flutter_flow_util.dart | 11 +-
lib/flutter_flow/internationalization.dart | 26 +--
lib/main.dart | 2 +-
.../schedule_complete_visit_page_widget.dart | 156 ------------------
9 files changed, 76 insertions(+), 203 deletions(-)
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
index ff0dcf11..748aee74 100644
--- a/ios/Flutter/AppFrameworkInfo.plist
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 14.0
+ 14.0.0
diff --git a/ios/Podfile b/ios/Podfile
index a43aebd4..8f4bfd94 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
-platform :ios, '14.0'
+platform :ios, '14.0.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index bc29890e..528c549d 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -44,8 +44,8 @@
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 6436409127A31CD300820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; };
- 6436409227A31CD300820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
+ 6436409627A31CD000820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; };
+ 6436409B27A31CD100820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
/* End PBXFileReference section */
@@ -225,8 +225,8 @@
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
- 6436409127A31CD300820AF7 /* pt */,
- 6436409227A31CD300820AF7 /* en */,
+ 6436409627A31CD000820AF7 /* pt */,
+ 6436409B27A31CD100820AF7 /* en */,
);
name = InfoPlist.strings;
sourceTree = "";
@@ -291,7 +291,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
@@ -373,7 +373,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -422,7 +422,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 14.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 14.0.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
diff --git a/lib/components/templates_components/sign_in_template_component/sign_in_template_component_model.dart b/lib/components/templates_components/sign_in_template_component/sign_in_template_component_model.dart
index 5c89397f..fd542965 100644
--- a/lib/components/templates_components/sign_in_template_component/sign_in_template_component_model.dart
+++ b/lib/components/templates_components/sign_in_template_component/sign_in_template_component_model.dart
@@ -21,7 +21,9 @@ class SignInTemplateComponentModel
}
if (!RegExp(kTextValidatorEmailRegex).hasMatch(val)) {
- return 'Has to be a valid email address.';
+ return FFLocalizations.of(context).getText(
+ 's3j1hjqx' /* E-mail Inv */,
+ );
}
return null;
}
diff --git a/lib/components/templates_components/sign_in_template_component/sign_in_template_component_widget.dart b/lib/components/templates_components/sign_in_template_component/sign_in_template_component_widget.dart
index 59612d43..ae8cc9df 100644
--- a/lib/components/templates_components/sign_in_template_component/sign_in_template_component_widget.dart
+++ b/lib/components/templates_components/sign_in_template_component/sign_in_template_component_widget.dart
@@ -4,6 +4,7 @@ import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/flutter_flow/flutter_flow_widgets.dart';
import '/actions/actions.dart' as action_blocks;
+import 'package:easy_debounce/easy_debounce.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
@@ -219,7 +220,16 @@ class _SignInTemplateComponentWidgetState
.emailAddressTextController,
focusNode: _model
.emailAddressFocusNode,
- autofocus: false,
+ onChanged: (_) =>
+ EasyDebounce.debounce(
+ '_model.emailAddressTextController',
+ const Duration(milliseconds: 500),
+ () => setState(() {}),
+ ),
+ autofocus: true,
+ autofillHints: const [
+ AutofillHints.email
+ ],
textCapitalization:
TextCapitalization.none,
textInputAction:
@@ -351,7 +361,16 @@ class _SignInTemplateComponentWidgetState
.passwordTextController,
focusNode:
_model.passwordFocusNode,
- autofocus: false,
+ onChanged: (_) =>
+ EasyDebounce.debounce(
+ '_model.passwordTextController',
+ const Duration(milliseconds: 500),
+ () => setState(() {}),
+ ),
+ autofocus: true,
+ autofillHints: const [
+ AutofillHints.password
+ ],
textInputAction:
TextInputAction.send,
obscureText: !_model
@@ -499,19 +518,26 @@ class _SignInTemplateComponentWidgetState
.fromSTEB(
0.0, 0.0, 0.0, 16.0),
child: FFButtonWidget(
- onPressed: () async {
- await action_blocks
- .singInLoginAction(
- context,
- emailAdress: _model
- .emailAddressTextController
- .text,
- password: _model
- .passwordTextController
- .text,
- );
- setState(() {});
- },
+ onPressed: ((_model.emailAddressTextController
+ .text ==
+ '') &&
+ (_model.passwordTextController
+ .text ==
+ ''))
+ ? null
+ : () async {
+ await action_blocks
+ .singInLoginAction(
+ context,
+ emailAdress: _model
+ .emailAddressTextController
+ .text,
+ password: _model
+ .passwordTextController
+ .text,
+ );
+ setState(() {});
+ },
text: FFLocalizations.of(
context)
.getText(
@@ -568,6 +594,12 @@ class _SignInTemplateComponentWidgetState
borderRadius:
BorderRadius.circular(
12.0),
+ disabledColor:
+ FlutterFlowTheme.of(
+ context)
+ .customColor5,
+ disabledTextColor:
+ Colors.white,
),
showLoadingIndicator: false,
),
diff --git a/lib/flutter_flow/flutter_flow_util.dart b/lib/flutter_flow/flutter_flow_util.dart
index 8bdcf64e..60ae0d61 100644
--- a/lib/flutter_flow/flutter_flow_util.dart
+++ b/lib/flutter_flow/flutter_flow_util.dart
@@ -396,8 +396,15 @@ extension FFTextEditingControllerExt on TextEditingController? {
}
extension IterableExt on Iterable {
- List sortedList([S Function(T)? keyOf]) => toList()
- ..sort(keyOf == null ? null : ((a, b) => keyOf(a).compareTo(keyOf(b))));
+ List sortedList(
+ {S Function(T)? keyOf, bool desc = false}) {
+ final sortedAscending = toList()
+ ..sort(keyOf == null ? null : ((a, b) => keyOf(a).compareTo(keyOf(b))));
+ if (desc) {
+ return sortedAscending.reversed.toList();
+ }
+ return sortedAscending;
+ }
List mapIndexed(S Function(int, T) func) => toList()
.asMap()
diff --git a/lib/flutter_flow/internationalization.dart b/lib/flutter_flow/internationalization.dart
index dc120945..b0b78958 100644
--- a/lib/flutter_flow/internationalization.dart
+++ b/lib/flutter_flow/internationalization.dart
@@ -241,10 +241,6 @@ final kTranslationsMap =