fix: Correctly pass through obscure text
fixes https://github.com/krille-chan/fluffychat/issues/2266
This commit is contained in:
parent
dfc97aa3d7
commit
ae29f949d2
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ Future<String?> showTextInputDialog({
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
maxLength: maxLength,
|
maxLength: maxLength,
|
||||||
keyboardType: keyboardType,
|
keyboardType: keyboardType,
|
||||||
|
obscureText: obscureText,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue