mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-06-28 11:14:59 +03:00
remove literalInput
This commit is contained in:
@@ -393,7 +393,6 @@ class DialogTextField extends StatelessWidget {
|
||||
final TextInputType? keyboardType;
|
||||
final List<TextInputFormatter>? inputFormatters;
|
||||
final int? maxLength;
|
||||
final bool literalInput;
|
||||
|
||||
static const kUsernameTitle = 'Username';
|
||||
static const kUsernameIcon = Icon(Icons.account_circle_outlined);
|
||||
@@ -412,7 +411,6 @@ class DialogTextField extends StatelessWidget {
|
||||
this.keyboardType,
|
||||
this.inputFormatters,
|
||||
this.maxLength,
|
||||
this.literalInput = false,
|
||||
required this.title,
|
||||
required this.controller})
|
||||
: super(key: key);
|
||||
@@ -437,17 +435,7 @@ class DialogTextField extends StatelessWidget {
|
||||
focusNode: focusNode,
|
||||
autofocus: true,
|
||||
obscureText: obscureText,
|
||||
keyboardType: keyboardType ??
|
||||
(literalInput ? TextInputType.visiblePassword : null),
|
||||
textCapitalization: TextCapitalization.none,
|
||||
autocorrect: !literalInput,
|
||||
enableSuggestions: !literalInput,
|
||||
smartDashesType: literalInput ? SmartDashesType.disabled : null,
|
||||
smartQuotesType: literalInput ? SmartQuotesType.disabled : null,
|
||||
enableIMEPersonalizedLearning: !literalInput,
|
||||
spellCheckConfiguration: literalInput
|
||||
? const SpellCheckConfiguration.disabled()
|
||||
: null,
|
||||
keyboardType: keyboardType,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user