use get to call translate()
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
7671ed857d
commit
2c044d7262
1 changed files with 3 additions and 2 deletions
|
|
@ -39,8 +39,6 @@ class ServerModel with ChangeNotifier {
|
|||
|
||||
late String _emptyIdShow;
|
||||
late final IDTextEditingController _serverId;
|
||||
final _serverPasswd =
|
||||
TextEditingController(text: translate("Generating ..."));
|
||||
|
||||
final tabController = DesktopTabController(tabType: DesktopTabType.cm);
|
||||
|
||||
|
|
@ -64,6 +62,9 @@ class ServerModel with ChangeNotifier {
|
|||
|
||||
int get connectStatus => _connectStatus;
|
||||
|
||||
TextEditingController get _serverPasswd =>
|
||||
TextEditingController(text: translate("Generating ..."));
|
||||
|
||||
String get verificationMethod {
|
||||
final index = [
|
||||
kUseTemporaryPassword,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue