TF-2387 Handle system back button on login view mobile
This commit is contained in:
@@ -26,7 +26,12 @@ class LoginView extends BaseLoginView {
|
||||
Widget build(BuildContext context) {
|
||||
ThemeUtils.setSystemDarkUIStyle();
|
||||
|
||||
return Scaffold(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvoked: (didPop) => !didPop
|
||||
? controller.handleBackButtonAction(context)
|
||||
: null,
|
||||
child: Scaffold(
|
||||
backgroundColor: AppColor.primaryLightColor,
|
||||
body: GestureDetector(
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
@@ -63,7 +68,8 @@ class LoginView extends BaseLoginView {
|
||||
]),
|
||||
),
|
||||
),
|
||||
));
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildCenterForm(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user