Skip to content

Commit 78081a1

Browse files
committed
Optimize Direct mode ui
1 parent 6896837 commit 78081a1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

lib/fragments/dashboard/network_detection.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:fl_clash/common/common.dart';
2+
import 'package:fl_clash/enum/enum.dart';
23
import 'package:fl_clash/models/models.dart';
34
import 'package:fl_clash/widgets/widgets.dart';
45
import 'package:flutter/material.dart';
@@ -24,6 +25,11 @@ class _NetworkDetectionState extends State<NetworkDetection> {
2425
),
2526
);
2627
}
28+
if (currentProxyName == UsedProxy.DIRECT.name) {
29+
return const Icon(
30+
Icons.offline_bolt_outlined,
31+
);
32+
}
2733
if (delay == 0 || delay == null) {
2834
return const AspectRatio(
2935
aspectRatio: 1,

lib/fragments/dashboard/start_button.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class _StartButtonState extends State<StartButton>
5151
final appController = context.appController;
5252
await appController.updateSystemProxy(isStart);
5353
if (isStart && mounted) {
54-
appController.clearCurrentDelay();
54+
appController.healthcheck();
5555
}
5656
}
5757

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: fl_clash
22
description: A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
33
publish_to: 'none'
4-
version: 0.7.10
4+
version: 0.7.11
55
environment:
66
sdk: '>=3.1.0 <4.0.0'
77

0 commit comments

Comments
 (0)