Fix. Connection, 2FA dialog, esc & enter (#6946)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-01-21 21:44:10 -08:00 committed by GitHub
parent 2576b46f34
commit b1a946ec20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 4 additions and 45 deletions

View file

@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:io';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -429,7 +428,6 @@ class Dialog2FaField extends ValidationField {
this.autoFocus = true,
this.reRequestFocus = false,
this.title,
this.helperText,
this.hintText,
this.errorText,
this.readyCallback,
@ -440,7 +438,6 @@ class Dialog2FaField extends ValidationField {
final bool autoFocus;
final bool reRequestFocus;
final String? title;
final String? helperText;
final String? hintText;
final String? errorText;
final VoidCallback? readyCallback;
@ -457,7 +454,6 @@ class Dialog2FaField extends ValidationField {
reRequestFocus: reRequestFocus,
hintText: hintText,
readyCallback: readyCallback,
helperText: helperText ?? translate('2fa_tip'),
onChanged: _onChanged,
keyboardType: TextInputType.number,
inputFormatters: [
@ -1860,6 +1856,8 @@ void enter2FaDialog(
'OK',
onPressed: submitReady.isTrue ? submit : null,
)),
]);
],
onSubmit: submit,
onCancel: cancel);
});
}