|
|
|
|
@ -35,14 +35,14 @@ class LandingPage extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _LandingPageState extends State<LandingPage> {
|
|
|
|
|
late final AuthenticationViewModel authVM;
|
|
|
|
|
|
|
|
|
|
bool isDone = false;
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
authVM = context.read<AuthenticationViewModel>();
|
|
|
|
|
authVM.savePushTokenToAppState();
|
|
|
|
|
if (mounted) {
|
|
|
|
|
authVM.checkLastLoginStatus(() {
|
|
|
|
|
showQuickLogin(context, false);
|
|
|
|
|
showQuickLogin(context);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
super.initState();
|
|
|
|
|
@ -321,7 +321,7 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void showQuickLogin(BuildContext context, bool isDone) {
|
|
|
|
|
void showQuickLogin(BuildContext context) {
|
|
|
|
|
showCommonBottomSheet(
|
|
|
|
|
context,
|
|
|
|
|
title: "",
|
|
|
|
|
@ -329,16 +329,19 @@ class _LandingPageState extends State<LandingPage> {
|
|
|
|
|
isDone: isDone,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
// sharedPref.setBool(HAS_ENABLED_QUICK_LOGIN, true);
|
|
|
|
|
authVM.loginWithFingerPrintFace();
|
|
|
|
|
authVM.loginWithFingerPrintFace((){
|
|
|
|
|
isDone = true;
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
height:isDone == false ? ResponsiveExtension.screenHeight * 0.5 : ResponsiveExtension.screenHeight * 0.3,
|
|
|
|
|
isFullScreen: false,
|
|
|
|
|
callBackFunc: (str) {
|
|
|
|
|
isDone = true;
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|