|
|
|
@ -633,10 +633,11 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () => {authenticateUser(4, true)},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
height: 140,
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.fromLTRB(30, 15, 30, 15),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(5, 15, 5, 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
@ -659,6 +660,7 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () => {authenticateUser(1, true)},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
height: 140,
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
child: Padding(
|
|
|
|
@ -693,13 +695,14 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () => {authenticateUser(2, BiometricType.fingerprint.index)},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
height: 140,
|
|
|
|
|
backgroundColor: BiometricType.fingerprint.index == 1
|
|
|
|
|
? Colors.white
|
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.fromLTRB(30, 15, 30, 15),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(5, 15, 5, 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
@ -722,13 +725,14 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
return InkWell(
|
|
|
|
|
onTap: () => {authenticateUser(3, BiometricType.face.index)},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
height: 140,
|
|
|
|
|
backgroundColor: checkIfBiometricAvailable(BiometricType.face)
|
|
|
|
|
? Colors.white
|
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.fromLTRB(30, 15, 30, 15),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(5, 15, 5, 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>[
|
|
|
|
@ -757,13 +761,14 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
child: RoundedContainer(
|
|
|
|
|
height: 140,
|
|
|
|
|
backgroundColor: BiometricType.fingerprint.index == 1
|
|
|
|
|
? Colors.white
|
|
|
|
|
: Colors.white.withOpacity(.7),
|
|
|
|
|
borderColor: Colors.grey,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.fromLTRB(5, 0, 5, 5),
|
|
|
|
|
padding: EdgeInsets.fromLTRB(5, 15, 5, 15),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|