BusinessAppFlutter/openclosenew/lib/verification.dart

119 lines
3.7 KiB
Dart
Raw Normal View History

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';
import 'package:openclosenew/thankyou.dart';
import 'FontFamily.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(
fontFamily: Font,
2022-05-31 13:48:18 +00:00
fontSize: TitleText,
color: primaryColor,
),
),
Spacer(),
Text(
'Enter Verification code',
style: TextStyle(
fontFamily: Font,
2022-05-31 13:48:18 +00:00
fontSize: SubText,
),
),
Row(
children: [
Padding(
padding: const EdgeInsets.only(top: 15),
child: OtpTextField(
numberOfFields: 5,
2022-05-31 13:48:18 +00:00
borderColor: DarkGray,
),
),
],
),
Padding(
padding: const EdgeInsets.only(top: 20),
child: RichText(
textAlign: TextAlign.center,
text: TextSpan(
children: [
TextSpan(
text: 'Didnt receive code? ',
style: TextStyle(
fontFamily: Font,
2022-05-31 13:48:18 +00:00
fontSize: SubText,
color: DarkGray,
),
),
TextSpan(
text: ' Resend OTP ',
style: TextStyle(
2022-05-31 13:48:18 +00:00
color: primaryColor,
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,
fontFamily: Font,
),
2022-05-31 13:48:18 +00:00
),
SizedBox(height: 20),
MaterialButton(
height: 50,
minWidth: double.infinity,
2022-05-31 13:48:18 +00:00
color: primaryColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (_) => thankyou()));
},
child: Text(
'Verify',
style: TextStyle(
color: White,
fontSize: HeadText,
fontFamily: Font,
),
),
),
],
),
),
),
);
}
}