fix login issue

fix_login
Mohammad Aljammal 4 years ago
parent e5e7452dad
commit 37a3c36b70

@ -5,8 +5,8 @@ const ONLY_NUMBERS = "[0-9]";
const ONLY_LETTERS = "[a-zA-Z &'\"]";
const ONLY_DATE = "[0-9/]";
const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/';
// const BASE_URL = 'https://hmgwebservices.com/';
const BASE_URL = 'https://uat.hmgwebservices.com/';
const BASE_URL = 'https://hmgwebservices.com/';
// const BASE_URL = 'https://uat.hmgwebservices.com/';
const PHARMACY_ITEMS_URL = "Services/Lists.svc/REST/GetPharmcyItems_Region_enh";
const PHARMACY_LIST_URL = "Services/Patients.svc/REST/GetPharmcyList";
const PATIENT_PROGRESS_NOTE_URL = "Services/DoctorApplication.svc/REST/GetProgressNoteForInPatient";

@ -460,7 +460,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
if (authMethodType == AuthMethodTypes.SMS ||
authMethodType == AuthMethodTypes.WhatsApp) {
GifLoaderDialogUtils.hideDialog(context);
this.startSMSService(authMethodType);
this.startSMSService(authMethodType,isSilentLogin:true);
} else {
checkActivationCode(isSilentLogin: true);
}
@ -503,7 +503,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
}
}
startSMSService(AuthMethodTypes type) {
startSMSService(AuthMethodTypes type,{bool isSilentLogin = false}) {
new SMSOTP(
context,
type,
@ -515,7 +515,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
return AppLoaderWidget();
});
this.checkActivationCode(value: value,isSilentLogin: false);
this.checkActivationCode(value: value,isSilentLogin: isSilentLogin);
},
() =>
{

@ -1,81 +0,0 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:flutter/material.dart';
import '../shared/app_texts_widget.dart';
import '../shared/rounded_container_widget.dart';
class DashboardItemIconText extends StatefulWidget {
final IconData icon;
final String value;
final String label;
final Color backgroundColor;
final bool showBorder;
final Color borderColor;
final double titleFontSize;
final Color titleFontColor;
final Color valueFontColor;
final double valueFontSize;
final Color iconColor;
// OWNER : Ibrahim albitar
// DATE : 05-04-2020
// DESCRIPTION : Custom widget for dashboard items has texts and icons widgets
DashboardItemIconText(this.icon, this.value, this.label,
{this.backgroundColor = Colors.white,
this.showBorder = false,
this.titleFontSize = 12,
this.valueFontSize = 26,
this.valueFontColor = Colors.white,
this.titleFontColor = Colors.white,
this.iconColor = Colors.white,
this.borderColor = Colors.white});
@override
_DashboardItemTextsState createState() => _DashboardItemTextsState();
}
class _DashboardItemTextsState extends State<DashboardItemIconText> {
@override
Widget build(BuildContext context) {
return new RoundedContainer(
margin: EdgeInsets.all(10),
child: Stack(
children: <Widget>[
Align(
alignment: FractionalOffset.topLeft,
child: Container(
padding: EdgeInsets.all(10),
child: Icon(
widget.icon,
size: SizeConfig.textMultiplier * 2.8,
color: widget.iconColor,
),
)),
Align(
alignment: FractionalOffset.bottomRight,
child: Container(
padding: EdgeInsets.all(10),
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
AppText(
widget.value,
color: widget.valueFontColor,
fontSize: widget.valueFontSize,
),
AppText(
widget.label,
color: widget.titleFontColor,
fontSize: widget.titleFontSize,
),
],
))),
],
),
backgroundColor: widget.backgroundColor,
showBorder: widget.showBorder,
borderColor: widget.borderColor,
);
}
}
Loading…
Cancel
Save