mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-20 08:35:46 +08:00
Various fixes
1. 强制更新后调整系统语言到中文(Debian小版本更新时经常会出现系统语言变默认的问题); 2. 安装WPS时强制修复安装(经常有用户出现安装时清后台导致安装损坏的情况,索性每次安装前执行修复命令); 3. 第一次进入容器时修改默认分辨率到与用户设备一致
This commit is contained in:
@@ -326,8 +326,8 @@ class _SettingPageState extends State<SettingPage> {
|
||||
final s = WidgetsBinding.instance.platformDispatcher.views.first.physicalSize;
|
||||
final w0 = max(s.width, s.height);
|
||||
final h0 = min(s.width, s.height);
|
||||
String w = (w0 * 0.6).round().toString();
|
||||
String h = (h0 * 0.6).round().toString();
|
||||
String w = (w0 * 0.75).round().toString();
|
||||
String h = (h0 * 0.75).round().toString();
|
||||
showDialog(context: context, builder: (context) {
|
||||
return AlertDialog(title: const Text("分辨率设置"), content: SingleChildScrollView(child: Column(children: [
|
||||
Text("你的设备屏幕分辨率是${w0.round()}x${h0.round()}"),
|
||||
|
||||
Reference in New Issue
Block a user