|
|
|
|
@ -191,20 +191,13 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
validator: validateCodeDigit))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// buildSizedBox(40),
|
|
|
|
|
buildSizedBox(20),
|
|
|
|
|
buildText(),
|
|
|
|
|
// buildSizedBox(10.0),
|
|
|
|
|
// Text()
|
|
|
|
|
|
|
|
|
|
buildSizedBox(40),
|
|
|
|
|
|
|
|
|
|
// buildSizedBox(),
|
|
|
|
|
RaisedButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
verifyAccount(
|
|
|
|
|
authProv, widget.changeLoadingStata);
|
|
|
|
|
// Navigator.of(context).pushNamed(HOME);
|
|
|
|
|
},
|
|
|
|
|
elevation: 0.0,
|
|
|
|
|
child: Container(
|
|
|
|
|
@ -293,6 +286,16 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
*@desc: buildText
|
|
|
|
|
*/
|
|
|
|
|
RichText buildText() {
|
|
|
|
|
String medthodName;
|
|
|
|
|
switch (model['OTP_SendType']) {
|
|
|
|
|
case 1:
|
|
|
|
|
medthodName = 'SMS';
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
medthodName = 'WhatsApp';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
}
|
|
|
|
|
var text = RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
@ -302,7 +305,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: 'Login Code ',
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w700)),
|
|
|
|
|
new TextSpan(text: 'By SMS, Please enter the code')
|
|
|
|
|
new TextSpan(text: 'By ${medthodName}, Please enter the code')
|
|
|
|
|
]));
|
|
|
|
|
return text;
|
|
|
|
|
}
|
|
|
|
|
|