|
|
|
|
@ -1,12 +1,14 @@
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_svg/svg.dart';
|
|
|
|
|
import 'package:tangheem/classes/const.dart';
|
|
|
|
|
import 'package:tangheem/classes/utils.dart';
|
|
|
|
|
import 'package:tangheem/widgets/common_textfield_widget.dart';
|
|
|
|
|
import 'file:///C:/Users/sikander.saleem/Documents/AndroidStudioProjects/tangheem/lib/extensions/email_validator.dart';
|
|
|
|
|
import 'package:tangheem/extensions/email_validator.dart';
|
|
|
|
|
|
|
|
|
|
class RegistrationScreen extends StatefulWidget {
|
|
|
|
|
static const String routeName = "/registration";
|
|
|
|
|
|
|
|
|
|
RegistrationScreen({Key key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -84,7 +86,14 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
CommonTextFieldWidget(hint: "الايميل", controller: _emailController),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
CommonTextFieldWidget(hint: "البلد", controller: _mobileNumberController, showSuffix: true),
|
|
|
|
|
CommonTextFieldWidget(
|
|
|
|
|
hint: "البلد",
|
|
|
|
|
controller: _mobileNumberController,
|
|
|
|
|
showSuffix: true,
|
|
|
|
|
onTap: () {
|
|
|
|
|
_selectCountry(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
CommonTextFieldWidget(hint: " رقم الجوال (9xx xxxxxxxxx+)", controller: _mobileNumberController),
|
|
|
|
|
SizedBox(height: 8),
|
|
|
|
|
@ -180,4 +189,45 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void _selectCountry(context) {
|
|
|
|
|
showModalBottomSheet(
|
|
|
|
|
context: context,
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(16),
|
|
|
|
|
topRight: Radius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
builder: (BuildContext bc) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.75,
|
|
|
|
|
// padding: EdgeInsets.all(16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(16),
|
|
|
|
|
topRight: Radius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(16),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Const.primaryBlue,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
topLeft: Radius.circular(16),
|
|
|
|
|
topRight: Radius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// color: Const.primaryBlue,
|
|
|
|
|
child: CommonTextFieldWidget(hint: "تعيين كلمة المرور", controller: null),
|
|
|
|
|
),
|
|
|
|
|
Expanded(child: ListView())
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|