From 2b28f80c9d01ce02c3b842354df4acb77ed81f46 Mon Sep 17 00:00:00 2001 From: jantunesmesias Date: Tue, 27 Aug 2024 14:19:24 -0300 Subject: [PATCH] WIP --- .../menu_component/menu_component_model.dart | 4 ++-- .../sign_in_template_component_widget.dart | 14 +++++------- .../sign_up_template_component_widget.dart | 22 ++++++++++--------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/components/organism_components/menu_component/menu_component_model.dart b/lib/components/organism_components/menu_component/menu_component_model.dart index 07a08f29..1b67105e 100644 --- a/lib/components/organism_components/menu_component/menu_component_model.dart +++ b/lib/components/organism_components/menu_component/menu_component_model.dart @@ -56,7 +56,7 @@ class MenuComponentModel extends FlutterFlowModel { Future deliverySchedule(BuildContext context) async { final isProvisional = AppState().provisional; - if (isProvisional) { + if (isProvisional == true) { context.pushNamed( 'deliverySchedule', extra: { @@ -74,7 +74,7 @@ class MenuComponentModel extends FlutterFlowModel { Future provisionalSchedule(BuildContext context) async { final isProvisional = AppState().provisional; - if (isProvisional) { + if (isProvisional == true) { context.pushNamed( 'provisionalSchedule', extra: { 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 419b80f9..d428e668 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 @@ -1,21 +1,21 @@ +import 'package:easy_debounce/easy_debounce.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_animate/flutter_animate.dart'; +import 'package:google_fonts/google_fonts.dart'; 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/utils/dialog_util.dart'; import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/validator_util.dart'; +import '/actions/actions.dart' as action_blocks; 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_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'; -import 'package:google_fonts/google_fonts.dart'; import 'sign_in_template_component_model.dart'; + export 'sign_in_template_component_model.dart'; class SignInTemplateComponentWidget extends StatefulWidget { @@ -869,8 +869,6 @@ class _SignInTemplateComponentWidgetState } }, ), - - // You will have to add an action on this rich text to go to your login page. Padding( padding: const EdgeInsetsDirectional .fromSTEB(0.0, 12.0, 0.0, 12.0), diff --git a/lib/components/templates_components/sign_up_template_component/sign_up_template_component_widget.dart b/lib/components/templates_components/sign_up_template_component/sign_up_template_component_widget.dart index dfa1d517..eb3ab3dd 100644 --- a/lib/components/templates_components/sign_up_template_component/sign_up_template_component_widget.dart +++ b/lib/components/templates_components/sign_up_template_component/sign_up_template_component_widget.dart @@ -1,19 +1,19 @@ +import 'package:easy_debounce/easy_debounce.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_animate/flutter_animate.dart'; +import 'package:google_fonts/google_fonts.dart'; 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/utils/validator_util.dart'; +import 'package:provider/provider.dart'; +import '/actions/actions.dart' as action_blocks; import '/flutter_flow/flutter_flow_animations.dart'; 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/material.dart'; -import 'package:flutter_animate/flutter_animate.dart'; -import 'package:flutter_svg/flutter_svg.dart'; -import 'package:google_fonts/google_fonts.dart'; -import 'package:provider/provider.dart'; import 'sign_up_template_component_model.dart'; + export 'sign_up_template_component_model.dart'; class SignUpTemplateComponentWidget extends StatefulWidget { @@ -101,8 +101,10 @@ class _SignUpTemplateComponentWidgetState @override Widget build(BuildContext context) { - double screenWidth = MediaQuery.of(context).size.width; - double screenHeight = MediaQuery.of(context).size.height; + final MediaQueryData mediaQuery = MediaQuery.of(context); + final double screenWidth = mediaQuery.size.width; + final double screenHeight = mediaQuery.size.height; + bool _isFormInvalid() { if (_model.nameRegisterFormTextController.text == '' || _model.emailRegisterFormTextController.text == '' || @@ -233,7 +235,7 @@ class _SignUpTemplateComponentWidgetState Form( key: _model.formKey, autovalidateMode: - AutovalidateMode.onUserInteraction, + AutovalidateMode.always, child: Column( mainAxisSize: MainAxisSize.max, children: [