|
|
@ -30,18 +30,14 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
handleRegister() async {
|
|
|
|
handleRegister() async {
|
|
|
|
if (_formKey.currentState!.validate()) {
|
|
|
|
if (_formKey.currentState!.validate()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await MyApp.userViewModel.register(_userPseudoTextField.text,
|
|
|
|
await MyApp.userViewModel.register(_userPseudoTextField.text, _passwordTextField.text, _userMailTextField.text);
|
|
|
|
_passwordTextField.text, _userMailTextField.text);
|
|
|
|
|
|
|
|
Navigator.pushNamed(context, '/explanation');
|
|
|
|
Navigator.pushNamed(context, '/explanation');
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
|
|
SnackBar(
|
|
|
|
SnackBar(
|
|
|
|
content: Text(
|
|
|
|
content: Text(
|
|
|
|
e.toString() ?? "",
|
|
|
|
e.toString() ?? "",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: Colors.white, fontWeight: FontWeight.w400, fontSize: 20.h),
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
fontSize: 20.h),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
backgroundColor: Colors.red,
|
|
|
|
backgroundColor: Colors.red,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -67,10 +63,8 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
padding: EdgeInsets.only(top: 100.h),
|
|
|
|
padding: EdgeInsets.only(top: 100.h),
|
|
|
|
child: AutoSizeText(
|
|
|
|
child: AutoSizeText(
|
|
|
|
"On a besoin de ça!",
|
|
|
|
"On a besoin de ça!",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style:
|
|
|
|
color: Colors.white,
|
|
|
|
GoogleFonts.plusJakartaSans(color: Colors.white, fontWeight: FontWeight.w600, fontSize: 30.w),
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
|
|
|
fontSize: 30.w),
|
|
|
|
|
|
|
|
maxLines: 1,
|
|
|
|
maxLines: 1,
|
|
|
|
maxFontSize: 50,
|
|
|
|
maxFontSize: 50,
|
|
|
|
overflow: TextOverflow.fade,
|
|
|
|
overflow: TextOverflow.fade,
|
|
|
@ -82,8 +76,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: defaultPadding),
|
|
|
|
horizontal: defaultPadding),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: 50.h),
|
|
|
|
padding: EdgeInsets.only(bottom: 50.h),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
@ -97,9 +90,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
child: AutoSizeText(
|
|
|
|
child: AutoSizeText(
|
|
|
|
"Promis c’est rapide.",
|
|
|
|
"Promis c’est rapide.",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white, fontWeight: FontWeight.w400, fontSize: 17.w),
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
fontSize: 17.w),
|
|
|
|
|
|
|
|
maxFontSize: 20,
|
|
|
|
maxFontSize: 20,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -109,10 +100,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
bottom: 16.h,
|
|
|
|
|
|
|
|
left: defaultPadding,
|
|
|
|
|
|
|
|
right: defaultPadding),
|
|
|
|
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
controller: _userPseudoTextField,
|
|
|
|
controller: _userPseudoTextField,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
@ -124,37 +112,24 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: primaryColor, fontSize: 15),
|
|
|
|
color: primaryColor, fontSize: 15),
|
|
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1.sp, color: strokeTextField),
|
|
|
|
width: 1.sp,
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(10))),
|
|
|
|
color: strokeTextField),
|
|
|
|
prefix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
borderRadius: const BorderRadius.all(
|
|
|
|
suffix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
Radius.circular(10))),
|
|
|
|
|
|
|
|
prefix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
suffix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
fillColor: bgTextField,
|
|
|
|
fillColor: bgTextField,
|
|
|
|
filled: true,
|
|
|
|
filled: true,
|
|
|
|
focusColor: const Color.fromRGBO(
|
|
|
|
focusColor: const Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
255, 255, 255, 0.30),
|
|
|
|
|
|
|
|
enabledBorder: const OutlineInputBorder(
|
|
|
|
enabledBorder: const OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(10))),
|
|
|
|
|
|
|
|
hintText: 'Pseudo',
|
|
|
|
hintText: 'Pseudo',
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(color: strokeTextField)),
|
|
|
|
color: strokeTextField)),
|
|
|
|
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
bottom: 16.h,
|
|
|
|
|
|
|
|
left: defaultPadding,
|
|
|
|
|
|
|
|
right: defaultPadding),
|
|
|
|
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
controller: _userMailTextField,
|
|
|
|
controller: _userMailTextField,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
@ -166,36 +141,24 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: primaryColor),
|
|
|
|
color: primaryColor),
|
|
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
prefix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
Radius.circular(10))),
|
|
|
|
suffix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
prefix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
suffix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
fillColor: bgTextField,
|
|
|
|
fillColor: bgTextField,
|
|
|
|
filled: true,
|
|
|
|
filled: true,
|
|
|
|
focusColor:
|
|
|
|
focusColor: Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
|
|
|
Radius.circular(10))),
|
|
|
|
|
|
|
|
hintText: 'Email',
|
|
|
|
hintText: 'Email',
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(color: strokeTextField)),
|
|
|
|
color: strokeTextField)),
|
|
|
|
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
bottom: 16.h,
|
|
|
|
|
|
|
|
left: defaultPadding,
|
|
|
|
|
|
|
|
right: defaultPadding),
|
|
|
|
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
controller: _passwordTextField,
|
|
|
|
controller: _passwordTextField,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
@ -207,29 +170,21 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: primaryColor),
|
|
|
|
color: primaryColor),
|
|
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius:
|
|
|
|
prefix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
BorderRadius.all(Radius.circular(10))),
|
|
|
|
suffix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
prefix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
suffix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
fillColor: bgTextField,
|
|
|
|
fillColor: bgTextField,
|
|
|
|
filled: true,
|
|
|
|
filled: true,
|
|
|
|
focusColor: Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
focusColor: Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.all(Radius.circular(10))),
|
|
|
|
|
|
|
|
hintText: 'Mot de passe',
|
|
|
|
hintText: 'Mot de passe',
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(color: strokeTextField),
|
|
|
|
color: strokeTextField),
|
|
|
|
|
|
|
|
suffixIcon: Container(
|
|
|
|
suffixIcon: Container(
|
|
|
|
padding: EdgeInsets.only(right: 10),
|
|
|
|
padding: EdgeInsets.only(right: 10),
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
@ -249,10 +204,8 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
// Splash color over image
|
|
|
|
// Splash color over image
|
|
|
|
child: Image(
|
|
|
|
child: Image(
|
|
|
|
image: passenable
|
|
|
|
image: passenable
|
|
|
|
? AssetImage(
|
|
|
|
? AssetImage("assets/images/show_icon.png")
|
|
|
|
"assets/images/show_icon.png")
|
|
|
|
: AssetImage("assets/images/hide_icon.png"),
|
|
|
|
: AssetImage(
|
|
|
|
|
|
|
|
"assets/images/hide_icon.png"),
|
|
|
|
|
|
|
|
height: 2,
|
|
|
|
height: 2,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
@ -260,10 +213,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(bottom: 16.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
bottom: 16.h,
|
|
|
|
|
|
|
|
left: defaultPadding,
|
|
|
|
|
|
|
|
right: defaultPadding),
|
|
|
|
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
controller: _passwordConfirmTextField,
|
|
|
|
controller: _passwordConfirmTextField,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
|
keyboardAppearance: Brightness.dark,
|
|
|
@ -278,29 +228,21 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
cursorColor: primaryColor,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
keyboardType: TextInputType.emailAddress,
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: primaryColor),
|
|
|
|
color: primaryColor),
|
|
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
decoration: InputDecoration(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius:
|
|
|
|
prefix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
BorderRadius.all(Radius.circular(10))),
|
|
|
|
suffix: const Padding(padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
prefix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
suffix: const Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20.0)),
|
|
|
|
|
|
|
|
fillColor: bgTextField,
|
|
|
|
fillColor: bgTextField,
|
|
|
|
filled: true,
|
|
|
|
filled: true,
|
|
|
|
focusColor: Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
focusColor: Color.fromRGBO(255, 255, 255, 0.30),
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
borderSide: BorderSide(width: 1, color: strokeTextField),
|
|
|
|
width: 1, color: strokeTextField),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.all(Radius.circular(10))),
|
|
|
|
|
|
|
|
hintText: 'Confirmation du Mot de passe',
|
|
|
|
hintText: 'Confirmation du Mot de passe',
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(
|
|
|
|
hintStyle: GoogleFonts.plusJakartaSans(color: strokeTextField),
|
|
|
|
color: strokeTextField),
|
|
|
|
|
|
|
|
suffixIcon: Container(
|
|
|
|
suffixIcon: Container(
|
|
|
|
padding: EdgeInsets.only(right: 10),
|
|
|
|
padding: EdgeInsets.only(right: 10),
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
@ -320,10 +262,8 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
// Splash color over image
|
|
|
|
// Splash color over image
|
|
|
|
child: Image(
|
|
|
|
child: Image(
|
|
|
|
image: passenable
|
|
|
|
image: passenable
|
|
|
|
? AssetImage(
|
|
|
|
? AssetImage("assets/images/show_icon.png")
|
|
|
|
"assets/images/show_icon.png")
|
|
|
|
: AssetImage("assets/images/hide_icon.png"),
|
|
|
|
: AssetImage(
|
|
|
|
|
|
|
|
"assets/images/hide_icon.png"),
|
|
|
|
|
|
|
|
height: 2,
|
|
|
|
height: 2,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
@ -331,8 +271,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: defaultPadding),
|
|
|
|
horizontal: defaultPadding),
|
|
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
child: SizedBox(
|
|
|
|
width: 600,
|
|
|
|
width: 600,
|
|
|
|
child: LoginButton(
|
|
|
|
child: LoginButton(
|
|
|
@ -341,6 +280,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
child: GestureDetector(
|
|
|
|
child: GestureDetector(
|
|
|
|
|
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.pushNamed(context, '/login');
|
|
|
|
Navigator.pushNamed(context, '/login');
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -351,16 +291,12 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
text: TextSpan(
|
|
|
|
text: TextSpan(
|
|
|
|
text: 'Tu as déjà un compte?',
|
|
|
|
text: 'Tu as déjà un compte?',
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white, fontWeight: FontWeight.w400, fontSize: 15),
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
fontSize: 15),
|
|
|
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
children: <TextSpan>[
|
|
|
|
TextSpan(
|
|
|
|
TextSpan(
|
|
|
|
text: " Connexion",
|
|
|
|
text: " Connexion",
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
fontSize: 15,
|
|
|
|
fontSize: 15, fontWeight: FontWeight.w400, color: primaryColor)),
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
|
|
|
|
color: primaryColor)),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -382,13 +318,10 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
padding: const EdgeInsets.only(left: defaultPadding, right: defaultPadding),
|
|
|
|
left: defaultPadding, right: defaultPadding),
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
'Ou',
|
|
|
|
'Ou',
|
|
|
|
style: GoogleFonts.plusJakartaSans(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: Colors.white, fontWeight: FontWeight.bold),
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
@ -409,9 +342,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
Buttons.Google,
|
|
|
|
Buttons.Google,
|
|
|
|
text: "Login with Google",
|
|
|
|
text: "Login with Google",
|
|
|
|
onPressed: () {},
|
|
|
|
onPressed: () {},
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(20))),
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.all(Radius.circular(20))),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -422,13 +353,10 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
height: 240.h,
|
|
|
|
height: 240.h,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
gradient: LinearGradient(begin: Alignment.topRight, stops: [
|
|
|
|
gradient: LinearGradient(
|
|
|
|
0,
|
|
|
|
begin: Alignment.topRight,
|
|
|
|
1
|
|
|
|
stops: [0, 1],
|
|
|
|
], colors: [
|
|
|
|
colors: [bgColor.withOpacity(1), bgColor.withOpacity(0)])),
|
|
|
|
bgColor.withOpacity(1),
|
|
|
|
|
|
|
|
bgColor.withOpacity(0)
|
|
|
|
|
|
|
|
])),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
@ -436,8 +364,7 @@ class _RegistrationScreenState extends State<RegistrationScreen> {
|
|
|
|
child: ConstrainedBox(
|
|
|
|
child: ConstrainedBox(
|
|
|
|
constraints: BoxConstraints(maxWidth: 800),
|
|
|
|
constraints: BoxConstraints(maxWidth: 800),
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
padding: EdgeInsets.only(top: 45.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
top: 45.h, left: defaultPadding, right: defaultPadding),
|
|
|
|
|
|
|
|
child: ClipRRect(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(10.0),
|
|
|
|
borderRadius: BorderRadius.circular(10.0),
|
|
|
|
child: LinearProgressIndicator(
|
|
|
|
child: LinearProgressIndicator(
|
|
|
|