TF-2387 Navigate to TwakeWelcome page when click back button on login view

This commit is contained in:
dab246
2024-09-05 14:41:32 +07:00
committed by Dat H. Pham
parent 05c0bf706e
commit 4667d43f50
3 changed files with 42 additions and 23 deletions
@@ -27,7 +27,7 @@ abstract class BaseLoginView extends GetWidget<LoginController> {
side: const BorderSide(width: 0, color: AppColor.primaryColor)
)
),
onPressed: controller.handleLoginPressed,
onPressed: () => controller.handleLoginPressed(context),
child: Text(
AppLocalizations.of(context).signIn,
style: const TextStyle(fontSize: 16, color: Colors.white)
@@ -89,7 +89,7 @@ abstract class BaseLoginView extends GetWidget<LoginController> {
hintText: AppLocalizations.of(context).password,
focusNode: controller.passFocusNode,
onTextChange: controller.onPasswordChange,
onSubmitted: (_) => controller.handleLoginPressed(),
onSubmitted: (_) => controller.handleLoginPressed(context),
);
}