fix ios issues

merge-requests/311/head
Mohammad Aljammal 4 years ago
parent a487f1afd1
commit d8d2e7f1d6

@ -343,17 +343,17 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
.width *
0.550,
child: TextFields(
inputFormatters: [
LengthLimitingTextInputFormatter(
4),
WhitelistingTextInputFormatter
.digitsOnly
],
// inputFormatters: [
// LengthLimitingTextInputFormatter(
// 4),
// WhitelistingTextInputFormatter
// .digitsOnly
// ],
hintText:
TranslationBase.of(context)
.strength,
controller: strengthController,
keyboardType: TextInputType.number,
keyboardType: TextInputType.numberWithOptions(decimal: true,),
onChanged: (String value) {
setState(() {
strengthChar = value.length;

@ -562,11 +562,7 @@ class _UpdatePrescriptionFormState extends State<UpdatePrescriptionForm> {
child: TextField(
decoration:
textFieldSelectorDecoration(
model
.patientAssessmentList[
0]
.icdCode10ID
.toString(),
model.patientAssessmentList.isNotEmpty? model.patientAssessmentList[0].icdCode10ID.toString():'',
indication != null
? indication['name']
: null,
@ -592,11 +588,7 @@ class _UpdatePrescriptionFormState extends State<UpdatePrescriptionForm> {
maxLines: 3,
decoration:
textFieldSelectorDecoration(
model
.patientAssessmentList[
0]
.asciiDesc
.toString(),
model.patientAssessmentList.isNotEmpty? model.patientAssessmentList[0].asciiDesc.toString():'',
indication != null
? indication['name']
: null,

@ -233,11 +233,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
Expanded(
child: InkWell(
onTap: () => {
authenticateUser(
3,
BiometricType
.face.index,
authProv)
authenticateUser(3, true, authProv)
},
child: getButton(
user.logInTypeID,
@ -488,8 +484,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
onTap: () => {
if (checkIfBiometricAvailable(BiometricType.fingerprint))
{
authenticateUser(
3, BiometricType.fingerprint.index, authProv)
authenticateUser(3, true, authProv)
}
},
child: RoundedContainer(
@ -524,7 +519,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
return InkWell(
onTap: () {
if (checkIfBiometricAvailable(BiometricType.face)) {
authenticateUser(4, BiometricType.face.index, authProv);
authenticateUser(4, true, authProv);
}
},
child: RoundedContainer(
@ -706,7 +701,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
}
loginWithFingurePrintFace(type, isActive, authProv) async {
if (isActive == 1) {
if (isActive) {
// this.startBiometricLoginIfAvailable();
authenticated = await auth.authenticateWithBiometrics(
localizedReason: 'Scan your fingerprint to authenticate',

Loading…
Cancel
Save