|
|
|
|
@ -51,11 +51,15 @@ class SMSOTP {
|
|
|
|
|
double dialogHeight = SizeConfig.isHeightVeryShort ?MediaQuery.of(context).size.height * 0.50:MediaQuery.of(context).size.height * 0.40;
|
|
|
|
|
return showDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
builder: (ctx) => Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
height: dialogHeight,
|
|
|
|
|
width: dialogWidth,
|
|
|
|
|
child: Material(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
@ -82,12 +86,14 @@ class SMSOTP {
|
|
|
|
|
? DoctorApp.verify_sms_1
|
|
|
|
|
: DoctorApp.verify_whtsapp,
|
|
|
|
|
size: SizeConfig.getHeightMultiplier(height:dialogHeight) * 9,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(Icons.close),
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
iconSize: SizeConfig.getHeightMultiplier(height:dialogHeight) * 15,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
this.isClosed = true;
|
|
|
|
|
@ -108,7 +114,9 @@ class SMSOTP {
|
|
|
|
|
.toString()
|
|
|
|
|
.substring(mobileNo.toString().length - 3),
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth(width: dialogWidth) * 3.5, //14,
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
)),
|
|
|
|
|
@ -255,7 +263,11 @@ class SMSOTP {
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).validationMessage +
|
|
|
|
|
' ',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
color: Color(0xFF2B353E),
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth(width: dialogWidth) * 3.5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
|