From 15be8d5dfe56e04cd437278957f34e983659bd0c Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Thu, 30 Dec 2021 10:59:52 +0300 Subject: [PATCH] email text changed --- lib/ui/screens/forgot_password_screen.dart | 42 +++++++++++----------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/lib/ui/screens/forgot_password_screen.dart b/lib/ui/screens/forgot_password_screen.dart index f6e929a..8ccaf21 100644 --- a/lib/ui/screens/forgot_password_screen.dart +++ b/lib/ui/screens/forgot_password_screen.dart @@ -4,8 +4,6 @@ import 'package:tangheem/api/user_api_client.dart'; import 'package:tangheem/classes/colors.dart'; import 'package:tangheem/classes/utils.dart'; import 'package:tangheem/extensions/string_extensions.dart'; -import 'package:tangheem/ui/dialogs/change_password_dialog.dart'; -import 'package:tangheem/ui/dialogs/otp_dialog.dart'; import 'package:tangheem/widgets/common_textfield_widget.dart'; class ForgotPasswordScreen extends StatefulWidget { @@ -36,7 +34,7 @@ class _ForgotPasswordScreenState extends State { Utils.showLoading(context); try { await UserApiClient().forgotPassword(email); - Utils.showToast("تم إرسال الرابط إلى عنوان بريدك الإلكتروني ، يرجى تعيين كلمة مرور جديدة بالنقر فوق هذا الرابط ."); + Utils.showToast("تم إرسال رابط تغيير كلمة المرور إلى بريدك الإلكتروني"); } catch (ex) { Utils.handleException(ex, null); Utils.hideLoading(context); @@ -152,23 +150,23 @@ class _ForgotPasswordScreenState extends State { ); } - // void getOTP(String email) { - // showDialog( - // context: context, - // barrierColor: ColorConsts.secondaryWhite.withOpacity(0.8), - // builder: (BuildContext context) => OTPDialog( - // onOTP: (otp) => verifyOTP(email, otp), - // ), - // ); - // } - // - // void changePassword(String email, int otp) { - // showDialog( - // context: context, - // barrierColor: ColorConsts.secondaryWhite.withOpacity(0.8), - // builder: (BuildContext context) => ChangePasswordDialog( - // onPassword: (password) => updatePassword(email, otp, password), - // ), - // ); - // } +// void getOTP(String email) { +// showDialog( +// context: context, +// barrierColor: ColorConsts.secondaryWhite.withOpacity(0.8), +// builder: (BuildContext context) => OTPDialog( +// onOTP: (otp) => verifyOTP(email, otp), +// ), +// ); +// } +// +// void changePassword(String email, int otp) { +// showDialog( +// context: context, +// barrierColor: ColorConsts.secondaryWhite.withOpacity(0.8), +// builder: (BuildContext context) => ChangePasswordDialog( +// onPassword: (password) => updatePassword(email, otp, password), +// ), +// ); +// } }