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