Remove proxies position animation, improve performance

Add Telegram Link
This commit is contained in:
chen08209
2024-05-06 14:03:45 +08:00
parent 9aa9180f1f
commit 85eb903402
9 changed files with 253 additions and 173 deletions

View File

@@ -205,6 +205,10 @@ class AppState with ChangeNotifier {
return getCurrentGroupNameWithGroups(currentGroups, groupName, mode);
}
Group getGroupWithName(String groupName) {
return groups.firstWhere((e) => e.name == groupName);
}
String? getCurrentProxyName(String? proxyName, Mode mode) {
final currentGroups = getCurrentGroups(mode);
switch (mode) {