mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-06-01 17:15:48 +08:00
mac程序坞退出清理事件
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user