fix layout glitch

This commit is contained in:
otsmr 2025-06-15 23:53:07 +02:00
parent 214ec6b368
commit 3f6b604f50

View file

@ -82,10 +82,12 @@ class _TwonlyIdentityBackupViewState extends State<TwonlyIdentityBackupView> {
Padding(
padding: EdgeInsetsGeometry.all(5),
child: Text(
(passwordCtrl.text.length <= 10 && passwordCtrl.text.isNotEmpty)
? "Passwort muss mind. 10 Zeichen lang sein."
: "",
style: TextStyle(color: Colors.red),
"Passwort muss mind. 10 Zeichen lang sein.",
style: TextStyle(
color: ((passwordCtrl.text.length <= 10 &&
passwordCtrl.text.isNotEmpty))
? Colors.red
: Colors.transparent),
),
),
const SizedBox(height: 5),
@ -108,11 +110,12 @@ class _TwonlyIdentityBackupViewState extends State<TwonlyIdentityBackupView> {
Padding(
padding: EdgeInsetsGeometry.all(5),
child: Text(
(passwordCtrl.text != repeatedPasswordCtrl.text &&
"Passwörter stimmen nicht überein.",
style: TextStyle(
color: (passwordCtrl.text != repeatedPasswordCtrl.text &&
repeatedPasswordCtrl.text.isNotEmpty)
? "Passwörter stimmen nicht überein."
: "",
style: TextStyle(color: Colors.red),
? Colors.red
: Colors.transparent),
),
),
],