|
|
|
@ -385,9 +385,9 @@ class _SplashState extends State<Splash> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Object errorNotify(int index, context){
|
|
|
|
|
Object Notify(int index, context, {bool isError = true}){
|
|
|
|
|
String message;
|
|
|
|
|
if(isError == true){
|
|
|
|
|
switch(index){
|
|
|
|
|
case 0: {
|
|
|
|
|
message = "Ce nom d'utilisateur existe déjà ! Veuillez réessayer.";
|
|
|
|
@ -470,6 +470,81 @@ Object errorNotify(int index, context){
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
switch(index){
|
|
|
|
|
case 0: {
|
|
|
|
|
message = "Vous avez changer votre identifiant avec succès";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 1: {
|
|
|
|
|
message = "Vous avez changer votre mot de passe avec succès";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
message = "L'opération a bien été éxécutée";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return ScaffoldMessenger.of(context).showSnackBar( SnackBar(
|
|
|
|
|
dismissDirection: DismissDirection.down,
|
|
|
|
|
behavior: SnackBarBehavior.floating,
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
content: Stack(
|
|
|
|
|
clipBehavior: Clip.none,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(16),
|
|
|
|
|
height: 90,
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 48,
|
|
|
|
|
width: 48,
|
|
|
|
|
),
|
|
|
|
|
Expanded(child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text("Super !", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),),
|
|
|
|
|
Text(message,style: TextStyle(
|
|
|
|
|
),
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
maxLines: 2,),
|
|
|
|
|
],
|
|
|
|
|
),),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
image: AssetImage("assets/images/valid_background.png"),
|
|
|
|
|
fit: BoxFit.cover),
|
|
|
|
|
gradient: LinearGradient(colors: [Color(0xFF81052a),Color(0xFF810548)],begin: Alignment.topLeft, end: Alignment.bottomRight),
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20)),
|
|
|
|
|
boxShadow: [
|
|
|
|
|
BoxShadow(
|
|
|
|
|
color: Colors.black.withOpacity(0.3),
|
|
|
|
|
blurRadius: 10,
|
|
|
|
|
offset: Offset(4, 8), // Shadow position
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
top: -50,
|
|
|
|
|
left: -20,
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
height: 110,
|
|
|
|
|
width: 110,
|
|
|
|
|
child: riv.RiveAnimation.asset("assets/images/valid_icon.riv"),)),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|