Optimize android vpn performance

Add custom primary color and color scheme

Add linux nad windows arm release

Optimize requests and logs page
This commit is contained in:
chen08209
2025-04-09 16:46:14 +08:00
parent a77b3a35e8
commit c9cd80bcb3
100 changed files with 3081 additions and 997 deletions

View File

@@ -196,7 +196,7 @@ class ViewSize extends _$ViewSize with AutoDisposeNotifierMixin {
);
}
ViewMode get viewMode => other.getViewMode(state.width);
ViewMode get viewMode => utils.getViewMode(state.width);
bool get isMobileView => viewMode == ViewMode.mobile;
}
@@ -208,7 +208,7 @@ double viewWidth(Ref ref) {
@riverpod
ViewMode viewMode(Ref ref) {
return other.getViewMode(ref.watch(viewWidthProvider));
return utils.getViewMode(ref.watch(viewWidthProvider));
}
@riverpod
@@ -356,3 +356,18 @@ class DelayDataSource extends _$DelayDataSource with AutoDisposeNotifierMixin {
}
}
}
@riverpod
class NeedApply extends _$NeedApply with AutoDisposeNotifierMixin {
@override
bool build() {
return globalState.appState.needApply;
}
@override
onUpdate(value) {
globalState.appState = globalState.appState.copyWith(
needApply: value,
);
}
}