|
|
@ -83,72 +83,74 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return GestureDetector(
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
FocusScopeNode currentFocus = FocusScope.of(context);
|
|
|
|
FocusScopeNode currentFocus = FocusScope.of(context);
|
|
|
|
if (!currentFocus.hasPrimaryFocus) {
|
|
|
|
if (!currentFocus.hasPrimaryFocus) {
|
|
|
|
currentFocus.unfocus();
|
|
|
|
currentFocus.unfocus();
|
|
|
|
resetFullScreen();
|
|
|
|
resetFullScreen();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Scaffold(
|
|
|
|
child: Scaffold(
|
|
|
|
appBar: PreferredSize(
|
|
|
|
appBar: PreferredSize(
|
|
|
|
preferredSize: Size(double.infinity, 58),
|
|
|
|
preferredSize: Size(double.infinity, 58),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
height: double.infinity,
|
|
|
|
height: double.infinity,
|
|
|
|
color: bgAppBar,
|
|
|
|
color: bgAppBar,
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: defaultPadding),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: defaultPadding),
|
|
|
|
child: Stack(
|
|
|
|
child: Stack(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.pop(context, true);
|
|
|
|
Navigator.pop(context, true);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
width: 30,
|
|
|
|
width: 30,
|
|
|
|
child: Image(
|
|
|
|
child: Image(
|
|
|
|
image: AssetImage("assets/images/return_icon.png"),
|
|
|
|
image: AssetImage("assets/images/return_icon.png"),
|
|
|
|
height: 8,
|
|
|
|
height: 8,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
|
"Mettre le mot de passe à jour",
|
|
|
|
"Mettre le mot de passe à jour",
|
|
|
|
style:
|
|
|
|
style:
|
|
|
|
GoogleFonts.plusJakartaSans(color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
|
GoogleFonts.plusJakartaSans(color: Colors.white, fontSize: 14, fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: Container(
|
|
|
|
),
|
|
|
|
width: double.infinity,
|
|
|
|
body: Container(
|
|
|
|
height: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
color: bgColor,
|
|
|
|
height: double.infinity,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
color: bgColor,
|
|
|
|
physics: const BouncingScrollPhysics(decelerationRate: ScrollDecelerationRate.fast),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Padding(
|
|
|
|
physics: const BouncingScrollPhysics(decelerationRate: ScrollDecelerationRate.fast),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: settingPadding),
|
|
|
|
child: Padding(
|
|
|
|
child: Column(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: settingPadding),
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
Padding(
|
|
|
|
children: [
|
|
|
|
padding: EdgeInsets.only(top: 30, bottom: 40),
|
|
|
|
Padding(
|
|
|
|
child: SizedBox(
|
|
|
|
padding: EdgeInsets.only(top: 30, bottom: 40),
|
|
|
|
width: double.infinity,
|
|
|
|
child: SizedBox(
|
|
|
|
child: Form(
|
|
|
|
width: double.infinity,
|
|
|
|
key: _formKey,
|
|
|
|
child: Form(
|
|
|
|
child: Stack(
|
|
|
|
key: _formKey,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Stack(
|
|
|
|
children: [
|
|
|
|
alignment: Alignment.center,
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
constraints: BoxConstraints(maxWidth: 600),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
@ -274,34 +276,36 @@ class _ChangePasswordScreenState extends State<ChangePasswordScreen> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
),
|
|
|
|
onTap: handleChange,
|
|
|
|
GestureDetector(
|
|
|
|
child: Align(
|
|
|
|
onTap: handleChange,
|
|
|
|
child: Container(
|
|
|
|
child: Align(
|
|
|
|
height: 35,
|
|
|
|
child: Container(
|
|
|
|
width: 160,
|
|
|
|
height: 35,
|
|
|
|
decoration:
|
|
|
|
width: 160,
|
|
|
|
BoxDecoration(color: primaryColor, borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
decoration:
|
|
|
|
child: Center(
|
|
|
|
BoxDecoration(color: primaryColor, borderRadius: BorderRadius.all(Radius.circular(10))),
|
|
|
|
child: Text(
|
|
|
|
child: Center(
|
|
|
|
"Mettre à jour",
|
|
|
|
child: Text(
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: Colors.white),
|
|
|
|
"Mettre à jour",
|
|
|
|
),
|
|
|
|
style: GoogleFonts.plusJakartaSans(color: Colors.white),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|