|
|
@ -73,8 +73,7 @@ class _WebLoginView extends State<WebLoginView> {
|
|
|
|
var media = MediaQuery.of(context).size;
|
|
|
|
var media = MediaQuery.of(context).size;
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: TColor.white,
|
|
|
|
backgroundColor: TColor.white,
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SafeArea(
|
|
|
|
child: SafeArea(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 300),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 300),
|
|
|
|
height: media.height,
|
|
|
|
height: media.height,
|
|
|
@ -85,7 +84,7 @@ class _WebLoginView extends State<WebLoginView> {
|
|
|
|
height: media.width * 0.03,
|
|
|
|
height: media.width * 0.03,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
"Bienvenue",
|
|
|
|
"Bienvenue sur SmartFit",
|
|
|
|
style: TextStyle(color: TColor.gray, fontSize: 16),
|
|
|
|
style: TextStyle(color: TColor.gray, fontSize: 16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
@ -152,8 +151,7 @@ class _WebLoginView extends State<WebLoginView> {
|
|
|
|
title: "Se connecter",
|
|
|
|
title: "Se connecter",
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
if (!emailValidate || !passwordValidate) {
|
|
|
|
if (!emailValidate || !passwordValidate) {
|
|
|
|
_printMsgError(
|
|
|
|
_printMsgError("Les champs renseigné ne sont pas valide");
|
|
|
|
"Les champs renseigné ne sont pas valide");
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Tuple2<bool, String> result =
|
|
|
|
Tuple2<bool, String> result =
|
|
|
@ -182,7 +180,6 @@ class _WebLoginView extends State<WebLoginView> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: media.width * 0.04,
|
|
|
|
height: media.width * 0.04,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: media.width * 0.04,
|
|
|
|
height: media.width * 0.04,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -217,7 +214,6 @@ class _WebLoginView extends State<WebLoginView> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|