feat: some changes

This commit is contained in:
Ivan Antunes 2024-07-29 15:23:39 -03:00
parent 8258e0dfcb
commit 765cc90956
3 changed files with 15 additions and 8 deletions

View File

@ -174,7 +174,7 @@ class _ForgotPasswordTemplateComponentWidgetState
labelStyle: labelStyle:
FlutterFlowTheme.of(context).labelMedium.override( FlutterFlowTheme.of(context).labelMedium.override(
fontFamily: 'Plus Jakarta Sans', fontFamily: 'Plus Jakarta Sans',
color: FlutterFlowTheme.of(context).accent1, color: FlutterFlowTheme.of(context).primary,
fontSize: 14.0, fontSize: 14.0,
letterSpacing: 0.0, letterSpacing: 0.0,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,

View File

@ -1,4 +1,6 @@
import 'package:hub/components/atomic_components/shared_components_atoms/atom_image_svg_theme.dart';
import 'package:hub/shared/components/atoms/atom_terms_of_use.dart'; import 'package:hub/shared/components/atoms/atom_terms_of_use.dart';
import 'package:hub/shared/utils/ValidatorUtil.dart';
import '/components/templates_components/forgot_password_template_component/forgot_password_template_component_widget.dart'; import '/components/templates_components/forgot_password_template_component/forgot_password_template_component_widget.dart';
import '/flutter_flow/flutter_flow_animations.dart'; import '/flutter_flow/flutter_flow_animations.dart';
@ -100,7 +102,7 @@ class _SignInTemplateComponentWidgetState
return true; return true;
} }
if (!RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$').hasMatch(_model.emailAddressTextController.text)) { if (!ValidatorUtil.isValidEmail(_model.emailAddressTextController.text)) {
return true; return true;
} }
@ -180,12 +182,7 @@ class _SignInTemplateComponentWidgetState
decoration: const BoxDecoration(), decoration: const BoxDecoration(),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(8.0), borderRadius: BorderRadius.circular(8.0),
child: Image.network( child: const AtomImageSvgTheme(filename: 'login', width: 600, height: 155),
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/flutter-freaccess-hub-0xgz9q/assets/sr43ucngg4a4/Vector.png',
width: 603.0,
height: 155.0,
fit: BoxFit.contain,
),
), ),
), ),
Column( Column(

View File

@ -0,0 +1,10 @@
class ValidatorUtil {
static bool isValidEmail(String email) {
if (RegExp(r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$').hasMatch(email)) {
return true;
} else {
return false;
}
}
}