2022-05-09 06:54:36 +00:00
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_otp_text_field/flutter_otp_text_field.dart';
|
2022-05-31 13:48:18 +00:00
|
|
|
|
import 'package:openclosenew/colors.dart';
|
|
|
|
|
import 'package:openclosenew/fontsize.dart';
|
2022-05-09 06:54:36 +00:00
|
|
|
|
import 'package:openclosenew/thankyou.dart';
|
|
|
|
|
|
|
|
|
|
class verification extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Spacer(),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(bottom: 30),
|
|
|
|
|
child: IconButton(
|
|
|
|
|
icon: Icon(Icons.arrow_back_ios, size: 24),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Spacer(),
|
|
|
|
|
Text(
|
|
|
|
|
'Verification',
|
|
|
|
|
style: TextStyle(
|
2022-05-31 13:48:18 +00:00
|
|
|
|
fontSize: TitleText,
|
|
|
|
|
color: primaryColor,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Spacer(),
|
|
|
|
|
Text(
|
|
|
|
|
'Enter Verification code',
|
|
|
|
|
style: TextStyle(
|
2022-05-31 13:48:18 +00:00
|
|
|
|
fontSize: SubText,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(top: 15),
|
|
|
|
|
child: OtpTextField(
|
|
|
|
|
numberOfFields: 5,
|
2022-05-31 13:48:18 +00:00
|
|
|
|
borderColor: DarkGray,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(top: 20),
|
|
|
|
|
child: RichText(
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
children: [
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: 'Didn’t receive code? ',
|
|
|
|
|
style: TextStyle(
|
2022-05-31 13:48:18 +00:00
|
|
|
|
fontSize: SubText,
|
|
|
|
|
color: DarkGray,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
TextSpan(
|
|
|
|
|
text: ' Resend OTP ',
|
|
|
|
|
style: TextStyle(
|
2022-05-31 13:48:18 +00:00
|
|
|
|
color: primaryColor,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Spacer(),
|
|
|
|
|
Text(
|
2022-05-31 13:48:18 +00:00
|
|
|
|
'By clicking “Verify” you are accepting our Terms & Conditions',
|
|
|
|
|
style: TextStyle(fontSize: SubText),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 20),
|
2022-05-09 06:54:36 +00:00
|
|
|
|
MaterialButton(
|
|
|
|
|
height: 50,
|
|
|
|
|
minWidth: double.infinity,
|
2022-05-31 13:48:18 +00:00
|
|
|
|
color: primaryColor,
|
2022-05-09 06:54:36 +00:00
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(4)),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context, MaterialPageRoute(builder: (_) => thankyou()));
|
|
|
|
|
},
|
|
|
|
|
child: Text(
|
|
|
|
|
'Verify',
|
2022-05-31 13:48:18 +00:00
|
|
|
|
style: TextStyle(color: White, fontSize: HeadText),
|
2022-05-09 06:54:36 +00:00
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|