fixed TM-171 jira task

This commit is contained in:
amirrezaghabeli
2025-10-01 14:11:53 +03:30
parent d42f477dcb
commit 006b421a9e
12 changed files with 69 additions and 17 deletions
@@ -101,7 +101,7 @@ class _TabletForgotPasswordCreatePageState
onToggleVisibility:
viewModel.toggleForgotPasswordVisibility,
),
SizedBox(height: 16.0.h()),
SizedBox(height: 24.0.h()),
Container(
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(left: 16.0.w()),
@@ -149,7 +149,7 @@ class _TabletForgotPasswordCreatePageState
),
),
),
SizedBox(height: 80.0.h()),
SizedBox(height: 70.0.h()),
viewModel.isResetPasswordLoading
? BaseButton(
isEnabled: viewModel.isNewPasswordValid,
@@ -169,6 +169,7 @@ class _TabletForgotPasswordCreatePageState
: null,
),
SizedBox(height: 32.0.h()),
TextButton(
onPressed: () {
context.pop();
@@ -1,7 +1,8 @@
import 'package:flutter/material.dart';
import 'package:tm_app/views/forget_password_otp.dart/pages/d_forget_password_otp_page.dart';
import 'package:tm_app/views/forget_password_otp.dart/pages/m_forget_password_otp_page.dart';
import 'package:tm_app/views/forget_password_otp.dart/pages/t_forget_password_otp_page.dart';
import 'package:tm_app/core/utils/size_config.dart';
import 'package:tm_app/views/forget_password_otp/pages/d_forget_password_otp_page.dart';
import 'package:tm_app/views/forget_password_otp/pages/m_forget_password_otp_page.dart';
import 'package:tm_app/views/forget_password_otp/pages/t_forget_password_otp_page.dart';
import '../../shared/responsive_builder.dart';
@@ -10,6 +11,7 @@ class ForgotPasswordOtpScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
SizeConfig.init(context);
return const ResponsiveBuilder(
mobile: MobileForgotPasswordOtpPage(),
tablet: TabletForgotPasswordOtpPage(),
@@ -113,7 +113,7 @@ class _TabletForgotPasswordOtpPageState
),
),
),
SizedBox(height: 24.0.h()),
SizedBox(height: 70.0.h()),
viewModel.isLoadingOtp
? BaseButton(
isEnabled: viewModel.isOtpValid,
@@ -131,7 +131,7 @@ class _TabletForgotPasswordOtpPageState
}
: null,
),
const SizedBox(height: 12.0),
SizedBox(height: 32.0.h()),
TextButton(
onPressed: () {
context.pop();
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:tm_app/core/utils/size_config.dart';
import '../../shared/responsive_builder.dart';
import 'd_forgot_apssword_page.dart';
@@ -10,6 +11,7 @@ class ForgotPasswordScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
SizeConfig.init(context);
return const ResponsiveBuilder(
mobile: MobileForgotPasswordPage(),
tablet: TabletForgotPasswordPage(),
@@ -59,7 +59,7 @@ class _TabletForgotPasswordPageState extends State<TabletForgotPasswordPage> {
builder: (context, viewModel, _) {
return Center(
child: SizedBox(
width: 364,
width: 364.0.w(),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -97,7 +97,7 @@ class _TabletForgotPasswordPageState extends State<TabletForgotPasswordPage> {
label: ForgotPasswordStrings.emailHint,
isPassword: false,
),
SizedBox(height: 24.0.h()),
SizedBox(height: 70.0.h()),
viewModel.isLoadingForgot
? const BaseButton(
isEnabled: false,
@@ -115,7 +115,7 @@ class _TabletForgotPasswordPageState extends State<TabletForgotPasswordPage> {
}
: null,
),
const SizedBox(height: 12),
SizedBox(height: 32.0.h()),
TextButton(
onPressed: () {
Navigator.pop(context);
+6 -6
View File
@@ -51,7 +51,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
child: SingleChildScrollView(
padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
child: SizedBox(
width: 526,
width: 364.0.w(),
child: Consumer<AuthViewModel>(
builder: (context, viewModel, _) {
return Column(
@@ -65,9 +65,9 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
height: 50.0.h(),
),
),
SizedBox(height: 32.0.h()),
SizedBox(height: 72.0.h()),
const LoginTitle(),
SizedBox(height: 32.0.h()),
SizedBox(height: 40.0.h()),
LoginTextField(
controller: viewModel.usernameController,
focusNode: viewModel.usernameFocus,
@@ -77,7 +77,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
borderRedus: 12,
prefixIconPadding: 4.0.w(),
),
SizedBox(height: 16.0.h()),
SizedBox(height: 24.0.h()),
LoginTextField(
controller: viewModel.passwordController,
focusNode: viewModel.passwordFocus,
@@ -90,7 +90,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
onToggleVisibility: viewModel.togglePasswordVisibility,
borderRedus: 12,
),
SizedBox(height: 32.0.h()),
SizedBox(height: 70.0.h()),
if (viewModel.isLoading)
const BaseButton(
isEnabled: false,
@@ -107,7 +107,7 @@ class _LoginTabletPageState extends State<LoginTabletPage> {
}
: null,
),
const SizedBox(height: 32.0),
SizedBox(height: 30.0.h()),
TextButton(
onPressed: () {
const ForgotPasswordRouteData().push(context);