fix ios issues

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

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

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

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

Loading…
Cancel
Save