chore: run dart format
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions

This commit is contained in:
Dr.Blank 2026-01-10 16:51:05 +05:30
parent a520136e01
commit e23c0b6c5f
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B
84 changed files with 1565 additions and 1945 deletions

View file

@ -52,7 +52,8 @@ class AddNewServer extends HookConsumerWidget {
// do nothing
appLogger.severe('Error parsing URI: $e');
}
final canSubmit = !readOnly &&
final canSubmit =
!readOnly &&
(isServerAliveValue || (allowEmpty && newServerURI.text.isEmpty));
return TextFormField(
readOnly: readOnly,
@ -71,8 +72,9 @@ class AddNewServer extends HookConsumerWidget {
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.8),
),
border: const OutlineInputBorder(),
prefixText:
myController.text.startsWith(httpUrlRegExp) ? '' : 'https://',
prefixText: myController.text.startsWith(httpUrlRegExp)
? ''
: 'https://',
prefixIcon: ServerAliveIcon(server: parsedUri),
// add server button
@ -101,10 +103,7 @@ class AddNewServer extends HookConsumerWidget {
}
class ServerAliveIcon extends HookConsumerWidget {
const ServerAliveIcon({
super.key,
required this.server,
});
const ServerAliveIcon({super.key, required this.server});
final Uri server;
@ -121,8 +120,8 @@ class ServerAliveIcon extends HookConsumerWidget {
message: server.toString().isEmpty
? 'Server Status'
: isServerAliveValue
? 'Server connected'
: 'Cannot connect to server',
? 'Server connected'
: 'Cannot connect to server',
child: server.toString().isEmpty
? Icon(
Icons.cloud_outlined,