安卓小窗口展示

This commit is contained in:
wanghongenpin
2023-12-20 20:36:12 +08:00
parent 66f1ce4a26
commit 36d2b8f381
23 changed files with 554 additions and 147 deletions

View File

@@ -45,6 +45,9 @@ class Configuration {
//白名单应用
List<String> appWhitelist = [];
/// 是否启用小窗口
bool smallWindow = false;
//远程连接 不持久化保存
String? remoteHost;
@@ -79,6 +82,7 @@ class Configuration {
appWhitelist = List<String>.from(config['appWhitelist'] ?? []);
HostFilter.whitelist.load(config['whitelist']);
HostFilter.blacklist.load(config['blacklist']);
smallWindow = config['smallWindow'] ?? Platform.isAndroid;
}
/// 配置文件
@@ -126,6 +130,7 @@ class Configuration {
'appWhitelist': appWhitelist,
'whitelist': HostFilter.whitelist.toJson(),
'blacklist': HostFilter.blacklist.toJson(),
'smallWindow': smallWindow,
};
}
}