Compare commits

..

1 Commits

Author SHA1 Message Date
chen08209
31de2e51bc Fix windows some issues
Optimize overwrite handle

Optimize access control page

Optimize some details
2025-12-09 16:28:10 +08:00
14 changed files with 54 additions and 1071 deletions

View File

@@ -1,964 +0,0 @@
## v0.8.91
- Fix windows some issues
- Optimize overwrite handle
- Optimize access control page
- Optimize some details
## v0.8.90
- Fix android tile service
- Support append system DNS
- Fix some issues
- Update changelog
## v0.8.89
- Fix some issues
- Optimize Windows service mode
- Update core
- Update changelog
## v0.8.88
- Add android separates the core process
- Support core status check and force restart
- Optimize proxies page and access page
- Update flutter and pub dependencies
- Update go version
- Optimize more details
- Update changelog
## v0.8.87
- Optimize desktop view
- Optimize logs, requests, connection pages
- Optimize windows tray auto hide
- Optimize some details
- Update core
- Update changelog
## v0.8.86
- Fix windows tun issues
- Optimize android get system dns
- Optimize more details
- Update changelog
## v0.8.85
- Support override script
- Support proxies search
- Support svg display
- Optimize config persistence
- Add some scenes auto close connections
- Update core
- Optimize more details
## v0.8.84
- Fix windows service verify issues
- Update changelog
## v0.8.83
- Add windows server mode start process verify
- Add linux deb dependencies
- Add backup recovery strategy select
- Support custom text scaling
- Optimize the display of different text scale
- Optimize windows setup experience
- Optimize startTun performance
- Optimize android tv experience
- Optimize default option
- Optimize computed text size
- Optimize hyperOS freeform window
- Add developer mode
- Update core
- Optimize more details
- Add issues template
- Update changelog
## v0.8.82
- Optimize android vpn performance
- Add custom primary color and color scheme
- Add linux nad windows arm release
- Optimize requests and logs page
- Fix map input page delete issues
- Update changelog
## v0.8.81
- Add rule override
- Update core
- Optimize more details
- Update changelog
## v0.8.80
- Optimize dashboard performance
- Fix some issues
- Fix unselected proxy group delay issues
- Fix asn url issues
- Update changelog
## v0.8.79
- Fix tab delay view issues
- Fix tray action issues
- Fix get profile redirect client ua issues
- Fix proxy card delay view issues
- Add Russian, Japanese adaptation
- Fix some issues
- Update changelog
## v0.8.78
- Fix list form input view issues
- Fix traffic view issues
- Update changelog
## v0.8.77
- Optimize performance
- Update core
- Optimize core stability
- Fix linux tun authority check error
- Fix some issues
- Fix scroll physics error
- Update changelog
## v0.8.75
- Add windows storage corruption detection
- Fix core crash caused by windows resource manager restart
- Optimize logs, requests, access to pages
- Fix macos bypass domain issues
- Update changelog
## v0.8.74
- Fix some issues
- Update changelog
## v0.8.73
- Update popup menu
- Add file editor
- Fix android service issues
- Optimize desktop background performance
- Optimize android main process performance
- Optimize delay test
- Optimize vpn protect
- Update changelog
## v0.8.72
- Update core
- Fix some issues
- Update changelog
## v0.8.71
- Remake dashboard
- Optimize theme
- Optimize more details
- Update flutter version
- Update changelog
## v0.8.70
- Support better window position memory
- Add windows arm64 and linux arm64 build script
- Optimize some details
## v0.8.69
- Remake desktop
- Optimize change proxy
- Optimize network check
- Fix fallback issues
- Optimize lots of details
- Update change.yaml
- Fix android tile issues
- Fix windows tray issues
- Support setting bypassDomain
- Update flutter version
- Fix android service issues
- Fix macos dock exit button issues
- Add route address setting
- Optimize provider view
- Update changelog
- Update CHANGELOG.md
## v0.8.67
- Add android shortcuts
- Fix init params issues
- Fix dynamic color issues
- Optimize navigator animate
- Optimize window init
- Optimize fab
- Optimize save
## v0.8.66
- Fix the collapse issues
- Add fontFamily options
## v0.8.65
- Update core version
- Update flutter version
- Optimize ip check
- Optimize url-test
## v0.8.64
- Update release message
- Init auto gen changelog
- Fix windows tray issues
- Fix urltest issues
- Add auto changelog
- Fix windows admin auto launch issues
- Add android vpn options
- Support proxies icon configuration
- Optimize android immersion display
- Fix some issues
- Optimize ip detection
- Support android vpn ipv6 inbound switch
- Support log export
- Optimize more details
- Fix android system dns issues
- Optimize dns default option
- Fix some issues
- Update readme
## v0.8.60
- Fix build error2
- Fix build error
- Support desktop hotkey
- Support android ipv6 inbound
- Support android system dns
- fix some bugs
## v0.8.59
- Fix delete profile error
## v0.8.58
- Fix submit error 2
- Fix submit error
- Optimize DNS strategy
- Fix the problem that the tray is not displayed in some cases
- Optimize tray
- Update core
- Fix some error
## v0.8.57
- Fix tun update issues
- Add DNS override
- Fixed some bugs
- Optimize more detail
- Add Hosts override
## v0.8.56
- fix android tip error
- fix windows auto launch error
## v0.8.55
- Fix windows tray issues
- Optimize windows logic
- Optimize app logic
- Support windows administrator auto launch
- Support android close vpn
## v0.8.53
- Change flutter version
- Support profiles sort
- Support windows country flags display
- Optimize proxies page and profiles page columns
## v0.8.52
- Update flutter version
- Update version
- Update timeout time
- Update access control page
- Fix bug
## v0.8.51
- Optimize provider page
- Optimize delay test
- Support local backup and recovery
- Fix android tile service issues
## v0.8.49
- Fix linux core build error
- Add proxy-only traffic statistics
- Update core
- Optimize more details
- Merge pull request #140 from txyyh/main
- 添加自建 F-Droid 仓库相关 workflow
- Rename readme fingerprint
- Rename workflow deploy repo name
- Add download guide to README
- Add push release files to fdroid-repo
## v0.8.48
- Optimize proxies page
- Fix ua issues
- Optimize more details
## v0.8.47
- Fix windows build error
## v0.8.46
- Update app icon
- Fix desktop backup error
- Optimize request ua
- Change android icon
- Optimize dashboard
## v0.8.44
- Remove request validate certificate
- Sync core
## v0.8.43
- Fix windows error
## v0.8.42
- Fix setup.dart error
- Fix android system proxy not effective
- Add macos arm64
## v0.8.41
- Optimize proxies page
- Support mouse drag scroll
- Adjust desktop ui
- Revert "Fix android vpn issues"
- This reverts commit 891977408e6938e2acd74e9b9adb959c48c79988.
## v0.8.40
- Fix android vpn issues
- Fix android vpn issues
- Rollback partial modification
## v0.8.39
- Fix the problem that ui can't be synchronized when android vpn is occupied by an external
- Override default socksPort,port
## v0.8.38
- Fix fab issues
## v0.8.37
- Update version
- Fix the problem that vpn cannot be started in some cases
- Fix the problem that geodata url does not take effect
## v0.8.36
- Update ua
- Fix change outbound mode without check ip issues
- Separate android ui and vpn
- Fix url validate issues 2
- Add android hidden from the recent task
- Add geoip file
- Support modify geoData URL
## v0.8.35
- Fix url validate issues
- Fix check ip performance problem
- Optimize resources page
## v0.8.34
- Add ua selector
- Support modify test url
- Optimize android proxy
- Fix the error that async proxy provider could not selected the proxy
## v0.8.33
- Fix android proxy error
- Fix submit error
- Add windows tun
- Optimize android proxy
- Optimize change profile
- Update application ua
- Optimize delay test
## v0.8.32
- Fix android repeated request notification issues
## v0.8.31
- Fix memory overflow issues
## v0.8.30
- Optimize proxies expansion panel 2
- Fix android scan qrcode error
## v0.8.29
- Optimize proxies expansion panel
- Fix text error
## v0.8.28
- Optimize proxy
- Optimize delayed sorting performance
- Add expansion panel proxies page
- Support to adjust the proxy card size
- Support to adjust proxies columns number
- Fix autoRun show issues
- Fix Android 10 issues
- Optimize ip show
## v0.8.26
- Add intranet IP display
- Add connections page
- Add search in connections, requests
- Add keyword search in connections, requests, logs
- Add basic viewing editing capabilities
- Optimize update profile
## v0.8.25
- Update version
- Fix the problem of excessive memory usage in traffic usage.
- Add lightBlue theme color
- Fix start unable to update profile issues
- Fix flashback caused by process
## v0.8.23
- Add build version
- Optimize quick start
- Update system default option
## v0.8.22
- Update build.yml
- Fix android vpn close issues
- Add requests page
- Fix checkUpdate dark mode style error
- Fix quickStart error open app
- Add memory proxies tab index
- Support hidden group
- Optimize logs
- Fix externalController hot load error
## v0.8.21
- Add tcp concurrent switch
- Add system proxy switch
- Add geodata loader switch
- Add external controller switch
- Add auto gc on trim memory
- Fix android notification error
## v0.8.20
- Fix ipv6 error
- Fix android udp direct error
- Add ipv6 switch
- Add access all selected button
- Remove android low version splash
## v0.8.19
- Update version
- Add allowBypass
- Fix Android only pick .text file issues
## v0.8.18
- Fix search issues
## v0.8.17
- Fix LoadBalance, Relay load error
- Fix build.yml4
- Fix build.yml3
- Fix build.yml2
- Fix build.yml
- Add search function at access control
- Fix the issues with the profile add button to cover the edit button
- Adapt LoadBalance and Relay
- Add arm
- Fix android notification icon error
## v0.8.16
- Add one-click update all profiles
- Add expire show
## v0.8.15
- Temp remove tun mode
- Remove macos in workflow
- Change go version
## v0.8.14
- Update Version
- Fix tun unable to open
## v0.8.13
- Optimize delay test2
- Optimize delay test
- Add check ip
- add check ip request
## v0.8.12
- Fix the problem that the download of remote resources failed after GeodataMode was turned on, which caused the
application to flash back.
- Fix edit profile error
- Fix quickStart change proxy error
- Fix core version
## v0.8.10
- Fix core version
## v0.8.9
- Update file_picker
- Add resources page
- Optimize more detail
- Add access selected sorted
- Fix notification duplicate creation issue
- Fix AccessControl click issue
## v0.8.7
- Fix Workflow
- Fix Linux unable to open
- Update README.md 3
- Create LICENSE
- Update README.md 2
- Update README.md
- Optimize workFlow
## v0.8.6
- optimize checkUpdate
## v0.8.5
- Fix submit error
## v0.8.4
- add WebDAV
- add Auto check updates
- Optimize more details
- optimize delayTest
## v0.8.2
- upgrade flutter version
## v0.8.1
- Update kernel
- Add import profile via QR code image
## v0.8.0
- Add compatibility mode and adapt clash scheme.
## v0.7.14
- update Version
- Reconstruction application proxy logic
## v0.7.13
- Fix Tab destroy error
## v0.7.12
- Optimize repeat healthcheck
## v0.7.11
- Optimize Direct mode ui
## v0.7.10
- Optimize Healthcheck
- Remove proxies position animation, improve performance
- Add Telegram Link
- Update healthcheck policy
- New Check URLTest
- Fix the problem of invalid auto-selection
## v0.7.8
- New Async UpdateConfig
- add changeProfileDebounce
- Update Workflow
- Fix ChangeProfile block
- Fix Release Message Error
## v0.7.7
- Update Selector 2
## v0.7.6
- Update Version
- Fix Proxies Select Error
## v0.7.5
- Fix the problem that the proxy group is empty in global mode.
- Fix the problem that the proxy group is empty in global mode.
## v0.7.4
- Add ProxyProvider2
## v0.7.3
- Add ProxyProvider
- Update Version
- Update ProxyGroup Sort
- Fix Android quickStart VpnService some problems
## v0.7.1
- Update version
- Set Android notification low importance
- Fix the issue that VpnService can't be closed correctly in special cases
- Fix the problem that TileService is not destroyed correctly in some cases
- Adjust tab animation defaults
- Add Telegram in README_zh_CN.md
- Add Telegram
## v0.7.0
- update mobile_scanner
- Initial commit

View File

@@ -42,7 +42,8 @@ class Preferences {
Future<bool> saveConfig(Config config) async {
final preferences = await sharedPreferencesCompleter.future;
return preferences?.setString(configKey, json.encode(config)) ?? false;
return await preferences?.setString(configKey, json.encode(config)) ??
false;
}
Future<void> clearClashConfig() async {

View File

@@ -105,8 +105,7 @@ class Tray {
subMenuItems.add(
MenuItem.checkbox(
label: proxy.name,
checked:
globalState.getSelectedProxyName(group.name) == proxy.name,
checked: trayState.selectedMap[group.name] == proxy.name,
onClick: (_) {
final appController = globalState.appController;
appController.updateCurrentSelectedMap(group.name, proxy.name);

View File

@@ -56,11 +56,7 @@ class AppController {
}
void savePreferencesDebounce() {
debouncer.call(
FunctionTag.savePreferences,
savePreferences,
duration: Duration(seconds: 3),
);
debouncer.call(FunctionTag.savePreferences, savePreferences);
}
void changeProxyDebounce(String groupName, String proxyName) {
@@ -69,7 +65,7 @@ class AppController {
String proxyName,
) async {
await changeProxy(groupName: groupName, proxyName: proxyName);
updateGroupsDebounce();
await updateGroups();
}, args: [groupName, proxyName]);
}
@@ -376,7 +372,6 @@ class AppController {
Future<void> updateGroups() async {
try {
commonPrint.log('updateGroups');
_ref.read(groupsProvider.notifier).value = await retry(
task: () async {
final sortType = _ref.read(

View File

@@ -280,7 +280,6 @@ enum FunctionTag {
logs,
requests,
autoScrollToEnd,
loadedProvider,
}
enum DashboardWidget {

View File

@@ -87,9 +87,7 @@ class _CoreContainerState extends ConsumerState<CoreManager>
ref
.read(providersProvider.notifier)
.setProvider(await coreController.getExternalProvider(providerName));
debouncer.call(FunctionTag.loadedProvider, () async {
globalState.appController.updateGroupsDebounce();
}, duration: const Duration(milliseconds: 5000));
globalState.appController.updateGroupsDebounce();
super.onLoaded(providerName);
}

View File

@@ -1097,7 +1097,7 @@ final class LoadingProvider extends $NotifierProvider<Loading, bool> {
}
}
String _$loadingHash() => r'd3d9e6b203fecbef89d468b6ecf173a98a6a26a9';
String _$loadingHash() => r'a0a09132a78495616785461cdc2a8b412c19b51b';
abstract class _$Loading extends $Notifier<bool> {
bool build();

View File

@@ -90,7 +90,7 @@ final class CurrentGroupsStateProvider
}
String _$currentGroupsStateHash() =>
r'dbf8f02606a31486c99d7b89d19914cd5a1fc496';
r'6222c006e1970e7435268d32903b9019cf1a4351';
@ProviderFor(navigationItemsState)
const navigationItemsStateProvider = NavigationItemsStateProvider._();
@@ -719,7 +719,7 @@ final class FilterGroupsStateProvider
}
}
String _$filterGroupsStateHash() => r'7de7a4603ca5ed7c39a00351af43144eb6c21404';
String _$filterGroupsStateHash() => r'c50aafbb50f98a66e21fc069d22031351d93a0ab';
final class FilterGroupsStateFamily extends $Family
with $FunctionalFamilyOverride<GroupsState, String> {

View File

@@ -51,16 +51,7 @@ GroupsState currentGroupsState(Ref ref) {
final mode = ref.watch(
patchClashConfigProvider.select((state) => state.mode),
);
final groups = ref.watch(
groupsProvider.select(
(state) => state.map((item) {
return item.copyWith(
now: '',
all: item.all.map((proxy) => proxy.copyWith(now: '')).toList(),
);
}),
),
);
final groups = ref.watch(groupsProvider);
return GroupsState(
value: switch (mode) {
Mode.direct => [],
@@ -299,7 +290,7 @@ GroupsState filterGroupsState(Ref ref, String query) {
})
.where((group) => group.all.isNotEmpty)
.toList();
return currentGroups.copyWith(value: groups);
return GroupsState(value: groups);
}
@riverpod

View File

@@ -367,12 +367,6 @@ class GlobalState {
);
}
String getSelectedProxyName(String groupName) {
final group = appState.groups.getGroup(groupName);
final proxyName = config.currentProfile?.selectedMap[groupName];
return group?.getCurrentSelectedName(proxyName ?? '') ?? '';
}
Future<String> setupConfig({
required SetupState setupState,
required ClashConfig patchConfig,

View File

@@ -6,7 +6,7 @@ import 'package:fl_clash/state.dart';
double get listHeaderHeight {
final measure = globalState.measure;
return 20 + measure.titleMediumHeight + 4 + measure.bodyMediumHeight + 2;
return 20 + measure.titleMediumHeight + 4 + measure.bodyMediumHeight;
}
double getItemHeight(ProxyCardType proxyCardType) {

View File

@@ -40,10 +40,8 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
}
if (!stringListEquality.equals(prev?.a, next.a)) {
_destroyTabController();
final groupNames = next.a;
final currentGroupName = next.b;
final index = groupNames.indexWhere((item) => item == currentGroupName);
_updateTabController(groupNames.length, index);
final index = next.a.indexWhere((item) => item == next.b);
_updateTabController(next.a.length, index);
}
}, fireImmediately: true);
}
@@ -129,22 +127,22 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
}
void _tabControllerListener([int? index]) {
int? groupIndex = index;
if (groupIndex == -1) {
return;
}
final appController = globalState.appController;
if (groupIndex == null) {
final currentIndex = _tabController?.index;
groupIndex = currentIndex;
}
final currentGroups = appController.getCurrentGroups();
if (groupIndex == null || groupIndex > currentGroups.length) {
return;
}
final currentGroup = currentGroups[groupIndex];
WidgetsBinding.instance.addPostFrameCallback((_) {
int? groupIndex = index;
if (groupIndex == -1) {
return;
}
final appController = globalState.appController;
if (groupIndex == null) {
final currentIndex = _tabController?.index;
groupIndex = currentIndex;
}
final currentGroups = appController.getCurrentGroups();
if (groupIndex == null || groupIndex > currentGroups.length) {
return;
}
final currentGroup = currentGroups[groupIndex];
appController.updateCurrentGroupName(currentGroup.name);
globalState.appController.updateCurrentGroupName(currentGroup.name);
});
}
@@ -155,8 +153,8 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
}
void _updateTabController(int length, int index) {
_destroyTabController();
if (length == 0) {
_destroyTabController();
return;
}
final realIndex = index == -1 ? 0 : index;
@@ -172,15 +170,26 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
@override
Widget build(BuildContext context) {
ref.watch(themeSettingProvider.select((state) => state.textScale));
final state = ref.watch(proxiesTabStateProvider.select((state) => state));
final state = ref.watch(proxiesTabStateProvider);
final groups = state.groups;
if (groups.isEmpty || _tabController == null) {
if (groups.isEmpty) {
return NullStatus(
illustration: ProxyEmptyIllustration(),
label: appLocalizations.nullTip(appLocalizations.proxies),
);
}
_keyMap = {};
final ProxyGroupViewKeyMap keyMap = {};
final children = groups.map((group) {
final key = GlobalObjectKey<_ProxyGroupViewState>(group.name);
keyMap[group.name] = key;
return ProxyGroupView(
key: key,
group: group,
columns: state.columns,
cardType: state.proxyCardType,
);
}).toList();
_keyMap = keyMap;
return Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -236,7 +245,7 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
context.colorScheme.surface.opacity10,
context.colorScheme.surface,
],
stops: const [0.0, 0.5],
stops: const [0.0, 0.1],
),
),
child: _buildMoreButton(),
@@ -244,21 +253,7 @@ class ProxiesTabViewState extends ConsumerState<ProxiesTabView>
),
),
Expanded(
child: TabBarView(
controller: _tabController,
children: [
for (final group in groups)
ProxyGroupView(
key: _keyMap.updateCacheValue(
group.name,
() => GlobalObjectKey<_ProxyGroupViewState>(group.name),
),
group: group,
columns: state.columns,
cardType: state.proxyCardType,
),
],
),
child: TabBarView(controller: _tabController, children: children),
),
],
);

View File

@@ -40,8 +40,6 @@ class CommonTargetIcon extends StatelessWidget {
}
}
final _cacheMange = DefaultCacheManager();
class ImageCacheWidget extends StatefulWidget {
final String src;
final Widget defaultWidget;
@@ -57,45 +55,22 @@ class ImageCacheWidget extends StatefulWidget {
}
class _ImageCacheWidgetState extends State<ImageCacheWidget> {
final ValueNotifier<File?> _imageNotifier = ValueNotifier(null);
late Future<File> _imageFuture;
@override
void initState() {
super.initState();
_getImageFormCache();
}
void _getImageFormCache() async {
final src = widget.src;
final cacheFile = await _cacheMange.getFileFromCache(src);
if (!mounted) {
return;
}
if (cacheFile != null) {
_imageNotifier.value = cacheFile.file;
if (cacheFile.validTill.isAfter(DateTime.now())) {
return;
}
}
if (!mounted) {
return;
}
_imageNotifier.value = (await _cacheMange.downloadFile(src, key: src)).file;
}
@override
void dispose() {
_imageNotifier.dispose();
super.dispose();
_imageFuture = DefaultCacheManager().getSingleFile(widget.src);
}
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<File?>(
valueListenable: _imageNotifier,
builder: (_, data, _) {
return FutureBuilder<File>(
future: _imageFuture,
builder: (context, snapshot) {
final data = snapshot.data;
if (data == null) {
return widget.defaultWidget;
return SizedBox();
}
return widget.src.isSvg
? SvgPicture.file(

View File

@@ -1,7 +1,7 @@
name: fl_clash
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
publish_to: 'none'
version: 0.8.91+2025122201
version: 0.8.91+2025121901
environment:
sdk: '>=3.8.0 <4.0.0'