mac程序坞退出清理事件

This commit is contained in:
wanghongenpin
2023-12-21 02:45:37 +08:00
parent 36d2b8f381
commit 1d083b4d05
16 changed files with 139 additions and 52 deletions

View File

@@ -40,8 +40,6 @@ class MobileHomeState extends State<MobileHomePage> with WidgetsBindingObserver
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
print("didChangeAppLifecycleState $state");
if (state == AppLifecycleState.inactive && Vpn.isVpnStarted) {
if (desktop.value.connect || !Platform.isAndroid || !widget.configuration.smallWindow) {
return;
@@ -53,7 +51,6 @@ class MobileHomeState extends State<MobileHomePage> with WidgetsBindingObserver
if (state == AppLifecycleState.resumed && pictureInPictureNotifier.value) {
Vpn.isRunning().then((value) {
Vpn.isVpnStarted = value;
print("isRunning $value");
pictureInPictureNotifier.value = false;
});
}
@@ -165,8 +162,9 @@ class MobileHomeState extends State<MobileHomePage> with WidgetsBindingObserver
'1. 请求重写增加 修改请求,可根据增则替换;\n'
'2. 请求重写批量导入、导出;\n'
'3. 支持WebSocket抓包\n'
'4. 优化curl导入\n'
'5. 支持head请求修复手机端请求重写切换应用恢复原始的请求问题\n'
'4. 安卓支持小窗口模式\n'
'5. 优化curl导入\n'
'6. 支持head请求修复手机端请求重写切换应用恢复原始的请求问题\n'
'';
showAlertDialog('更新内容V1.0.6', content, () {
widget.configuration.upgradeNoticeV6 = false;

View File

@@ -69,8 +69,7 @@ class _FavoriteItem extends StatefulWidget {
final ProxyServer proxyServer;
final Function(Favorite favorite)? onRemove;
const _FavoriteItem(this.favorite, {Key? key, required this.onRemove, required this.proxyServer, required this.index})
: super(key: key);
const _FavoriteItem(this.favorite, {super.key, required this.onRemove, required this.proxyServer, required this.index});
@override
State<_FavoriteItem> createState() => _FavoriteItemState();
@@ -156,7 +155,7 @@ class _FavoriteItemState extends State<_FavoriteItem> {
Container(color: Theme.of(context).hoverColor, height: 8),
TextButton(
child: Container(
height: 40,
height: 55,
width: double.infinity,
padding: const EdgeInsets.only(top: 10),
child: const Text("取消", textAlign: TextAlign.center)),

View File

@@ -461,7 +461,7 @@ class DomainListState extends State<DomainList> with AutomaticKeepAliveClientMix
),
TextButton(
child: Container(
height: 60,
height: 55,
width: double.infinity,
padding: const EdgeInsets.only(top: 10),
child: const Text("取消", textAlign: TextAlign.center)),

View File

@@ -145,7 +145,7 @@ class RequestRowState extends State<RequestRow> {
),
TextButton(
child: Container(
height: 40,
height: 55,
width: double.infinity,
padding: const EdgeInsets.only(top: 10),
child: const Text("取消", textAlign: TextAlign.center)),

View File

@@ -337,7 +337,7 @@ class _RequestRuleListState extends State<RequestRuleList> {
Container(color: Theme.of(context).hoverColor, height: 8),
TextButton(
child: Container(
height: 48,
height: 55,
width: double.infinity,
padding: const EdgeInsets.only(top: 10),
child: const Text("取消", textAlign: TextAlign.center)),