|
|
|
@ -98,11 +98,11 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Bienvenue,",
|
|
|
|
|
"Welcome,",
|
|
|
|
|
style: TextStyle(color: TColor.gray, fontSize: 16),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
"Créer un compte",
|
|
|
|
|
"Register",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: TColor.black,
|
|
|
|
|
fontSize: 20,
|
|
|
|
@ -112,7 +112,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
height: media.width * 0.05,
|
|
|
|
|
),
|
|
|
|
|
RoundTextField(
|
|
|
|
|
hitText: "Prénom",
|
|
|
|
|
hitText: "Username",
|
|
|
|
|
icon: "assets/img/user_text.svg",
|
|
|
|
|
controller: controllerUsername,
|
|
|
|
|
),
|
|
|
|
@ -129,7 +129,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
height: media.width * 0.04,
|
|
|
|
|
),
|
|
|
|
|
RoundTextField(
|
|
|
|
|
hitText: "Mot de passe",
|
|
|
|
|
hitText: "Password",
|
|
|
|
|
icon: "assets/img/lock.svg",
|
|
|
|
|
obscureText: _obscureText,
|
|
|
|
|
controller: controllerTextPassword,
|
|
|
|
@ -164,7 +164,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(top: 8),
|
|
|
|
|
child: Text(
|
|
|
|
|
"En continuant, vous acceptez notre Politique de\nconfidentialité et nos Conditions d'utilisation.",
|
|
|
|
|
"I accept to not break the app",
|
|
|
|
|
style: TextStyle(color: TColor.gray, fontSize: 10),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
@ -181,12 +181,12 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
height: media.width * 0.4,
|
|
|
|
|
),
|
|
|
|
|
RoundButton(
|
|
|
|
|
title: "Créer un compte",
|
|
|
|
|
title: "Register",
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
if (!emailValidate ||
|
|
|
|
|
!passwordValidate ||
|
|
|
|
|
!usernameValidate) {
|
|
|
|
|
_printMsgError("Les champs renseigné ne sont pas valide");
|
|
|
|
|
_printMsgError("Fields are not valid!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -215,7 +215,7 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
color: TColor.gray.withOpacity(0.5),
|
|
|
|
|
)),
|
|
|
|
|
Text(
|
|
|
|
|
" Ou ",
|
|
|
|
|
" Or ",
|
|
|
|
|
style: TextStyle(color: TColor.black, fontSize: 12),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
@ -239,14 +239,14 @@ class _MobileSignUpView extends State<MobileSignUpView> {
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Vous avez déjà un compte ? ",
|
|
|
|
|
"Already have an account ?",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: TColor.black,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
"Se connecter",
|
|
|
|
|
"Log in",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: TColor.black,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|