#29 opt. for material 3

This commit is contained in:
lollipopkit
2023-05-07 16:34:21 +08:00
parent 5afa543ba5
commit 29ea43a10f
18 changed files with 178 additions and 202 deletions

View File

@@ -240,7 +240,6 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
child: Text(_s.cancel),
)
],
barrierDismiss: false,
);
if (cancel ?? true) {
return;
@@ -250,10 +249,10 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
showSnackBar(context, Text(_s.plzSelectKey));
return;
}
if (_usernameController.text == '') {
if (_usernameController.text.isEmpty) {
_usernameController.text = 'root';
}
if (_portController.text == '') {
if (_portController.text.isEmpty) {
_portController.text = '22';
}