fix: Correctly pass through obscure text

fixes https://github.com/krille-chan/fluffychat/issues/2266
This commit is contained in:
Christian Kußowski 2025-10-20 07:51:35 +02:00
commit ae29f949d2
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,7 @@ class DialogTextField extends StatelessWidget {
final String? prefixText; final String? prefixText;
final String? suffixText; final String? suffixText;
final String? errorText; final String? errorText;
final bool obscureText = false; final bool obscureText;
final bool isDestructive = false; final bool isDestructive = false;
final int? minLines; final int? minLines;
final int? maxLines; final int? maxLines;
@ -32,6 +32,7 @@ class DialogTextField extends StatelessWidget {
this.controller, this.controller,
this.counterText, this.counterText,
this.errorText, this.errorText,
this.obscureText = false,
}); });
@override @override

View file

@ -71,6 +71,7 @@ Future<String?> showTextInputDialog({
maxLines: maxLines, maxLines: maxLines,
maxLength: maxLength, maxLength: maxLength,
keyboardType: keyboardType, keyboardType: keyboardType,
obscureText: obscureText,
); );
}, },
), ),