2022-05-09 06:54:36 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-05-31 13:48:18 +00:00
|
|
|
import 'package:openclosenew/colors.dart';
|
2022-05-09 06:54:36 +00:00
|
|
|
import 'package:openclosenew/verification.dart';
|
|
|
|
|
2022-06-01 16:36:23 +00:00
|
|
|
import 'FontFamily.dart';
|
|
|
|
import 'fontsize.dart';
|
|
|
|
|
2022-05-09 06:54:36 +00:00
|
|
|
class Register 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(),
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/login.png',
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 24,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Welcome!",
|
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
|
|
|
fontSize: TitleText,
|
2022-05-31 13:48:18 +00:00
|
|
|
color: primaryColor,
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 24,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
"Enter your mobile number to verification ",
|
|
|
|
style: TextStyle(
|
2022-06-01 16:36:23 +00:00
|
|
|
fontFamily: Font,
|
|
|
|
fontSize: HeadText,
|
2022-05-31 13:48:18 +00:00
|
|
|
color: DarkGray,
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: 24,
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Image.asset('assets/images/india.png'),
|
|
|
|
SizedBox(
|
|
|
|
width: 8,
|
|
|
|
),
|
|
|
|
Text('+91'),
|
|
|
|
SizedBox(
|
|
|
|
width: 8,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: TextField(
|
|
|
|
keyboardType: TextInputType.phone,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: InputBorder.none,
|
|
|
|
hintText: 'Mobile Number',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
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: (_) => verification()));
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
'Get OTP',
|
2022-06-01 16:36:23 +00:00
|
|
|
style: TextStyle(
|
|
|
|
color: White,
|
|
|
|
fontSize: HeadText,
|
|
|
|
fontFamily: Font,
|
|
|
|
),
|
2022-05-09 06:54:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|