You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.5 KiB
110 lines
3.5 KiB
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/svg.dart';
|
|
import 'package:smartfit_app_mobile/common_widget/text_field/round_text_field.dart';
|
|
|
|
import '../../common/colo_extension.dart';
|
|
|
|
class ChangePasswordView extends StatefulWidget {
|
|
const ChangePasswordView({super.key});
|
|
|
|
@override
|
|
State<ChangePasswordView> createState() => _ChangeUsernameViewState();
|
|
}
|
|
|
|
class _ChangeUsernameViewState extends State<ChangePasswordView> {
|
|
final TextEditingController controllerTextEmail = TextEditingController();
|
|
final TextEditingController controllerTextPassword = TextEditingController();
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
var media = MediaQuery.of(context).size;
|
|
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: TColor.white,
|
|
centerTitle: true,
|
|
elevation: 0,
|
|
leading: InkWell(
|
|
onTap: () {
|
|
Navigator.pop(context);
|
|
},
|
|
child: Container(
|
|
margin: const EdgeInsets.all(8),
|
|
height: 40,
|
|
width: 40,
|
|
alignment: Alignment.center,
|
|
decoration: BoxDecoration(
|
|
color: TColor.lightGray,
|
|
borderRadius: BorderRadius.circular(10)),
|
|
child: Image.asset(
|
|
"assets/img/black_btn.png",
|
|
width: 15,
|
|
height: 15,
|
|
fit: BoxFit.contain,
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
title: Text(
|
|
"Changer son Mot de passe",
|
|
style: TextStyle(
|
|
color: TColor.black, fontSize: 16, fontWeight: FontWeight.w700),
|
|
),
|
|
),
|
|
backgroundColor: TColor.white,
|
|
body: Column(
|
|
children: [
|
|
SizedBox(
|
|
height: media.width * 0.05,
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 200.0),
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
decoration: BoxDecoration(
|
|
color: Colors.transparent,
|
|
borderRadius: BorderRadius.circular(15),
|
|
),
|
|
child: Column(
|
|
children: [
|
|
RoundTextField(
|
|
hitText: "Ancien mot de passe",
|
|
icon: "assets/img/lock.svg",
|
|
keyboardType: TextInputType.text,
|
|
controller: controllerTextEmail,
|
|
),
|
|
SizedBox(height: media.width * 0.04),
|
|
RoundTextField(
|
|
controller: controllerTextPassword,
|
|
hitText: "Nouveau mot de passe",
|
|
icon: "assets/img/lock.svg",
|
|
obscureText: true,
|
|
rigtIcon: TextButton(
|
|
onPressed: () {},
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
width: 20,
|
|
height: 20,
|
|
child: SvgPicture.asset(
|
|
"assets/img/show_password.svg",
|
|
width: 20,
|
|
height: 20,
|
|
fit: BoxFit.contain,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |