feat(#98): améliorer le login avec autofill natif et navigation clavier

Active l’autofill navigateur/OS sur le formulaire de connexion et complète l’accessibilité clavier (Tab jusqu’au bouton, Entrée sur le mot de passe) sans stockage local custom des identifiants.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-24 23:27:04 +01:00
co-authored by Cursor
parent 80d69a5463
commit a4e6cfc50e
3 changed files with 306 additions and 227 deletions
+30 -20
View File
@@ -23,26 +23,36 @@ class ImageButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: onPressed,
child: Container(
width: width,
height: height,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(bg),
fit: BoxFit.fill,
),
return SizedBox(
width: width,
height: height,
child: Semantics(
button: true,
label: text,
child: TextButton(
onPressed: onPressed,
style: TextButton.styleFrom(
padding: EdgeInsets.zero,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
mouseCursor: SystemMouseCursors.click,
shape:
const RoundedRectangleBorder(borderRadius: BorderRadius.zero),
),
child: Center(
child: Text(
text,
style: GoogleFonts.merienda(
color: textColor,
fontSize: fontSize, // Utilisation du paramètre
fontWeight: FontWeight.bold,
child: Ink(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(bg),
fit: BoxFit.fill,
),
),
child: Center(
child: Text(
text,
style: GoogleFonts.merienda(
color: textColor,
fontSize: fontSize, // Utilisation du paramètre
fontWeight: FontWeight.bold,
),
),
),
),
@@ -50,4 +60,4 @@ class ImageButton extends StatelessWidget {
),
);
}
}
}