diff --git a/CHANGELOG.md b/CHANGELOG.md index adaa5a7..5c1a786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.2.7 +- 尝试修复布局异常,高分辨率异常的问题 + ## 2.2.6 - 修复域名过期,无法登录和资源无法加载的问题 diff --git a/lib/app/controller/chat_controller.dart b/lib/app/controller/chat_controller.dart index 189e79e..82f2701 100644 --- a/lib/app/controller/chat_controller.dart +++ b/lib/app/controller/chat_controller.dart @@ -214,22 +214,6 @@ class ChatController extends GetxController with WidgetsBindingObserver { sendMessage(dirPartMessage); // Log.i(dirPartMessage); }); - // await for(FileSystemEntity element in dir.list(recursive: true)){ - - // } - // List list = await dir.list(recursive: true).toList(); - // // TODO - // // 这儿还不敢随便改,等后面分配时间优化 - // // 不await list,不然在文件特别多的时候,会等待很久 - - // // TODO 改Model - // info = MessageInfoFactory.fromJson({ - // 'stat': 'complete', - // // 'size':element.s - // 'msgType': 'dirPart', - // 'partOf': dirName, - // }); - // socket.send(info.toString()); } /// 发送文件夹 @@ -458,6 +442,7 @@ class ChatController extends GetxController with WidgetsBindingObserver { // 同步之前发送过的消息 for (Map data in messageCache) { try { + // ignore: unused_local_variable Response res = await httpInstance!.post( '$urlPrefix:${joinMessage.messagePort}', data: data, @@ -620,8 +605,6 @@ class ChatController extends GetxController with WidgetsBindingObserver { case AppLifecycleState.resumed: // 刷新本地ip列表 refreshLocalAddress(); - // TODO - // initChat(); break; default: } diff --git a/lib/app/controller/file_controller.dart b/lib/app/controller/file_controller.dart index 620a672..8aa9169 100644 --- a/lib/app/controller/file_controller.dart +++ b/lib/app/controller/file_controller.dart @@ -54,6 +54,7 @@ class FileController extends GetxController with WidgetsBindingObserver { if (!dir.existsSync()) { try { dir.createSync(recursive: true); + // ignore: empty_catches } catch (e) {} } } diff --git a/lib/app/controller/setting_controller.dart b/lib/app/controller/setting_controller.dart index 201fbe9..5e6a01b 100644 --- a/lib/app/controller/setting_controller.dart +++ b/lib/app/controller/setting_controller.dart @@ -1,5 +1,4 @@ import 'dart:io'; -import 'dart:math'; import 'package:flutter/material.dart'; import 'package:get/get_state_manager/get_state_manager.dart'; diff --git a/lib/app/controller/utils/file_util.dart b/lib/app/controller/utils/file_util.dart index 112eb20..4f1c9dc 100644 --- a/lib/app/controller/utils/file_util.dart +++ b/lib/app/controller/utils/file_util.dart @@ -22,7 +22,7 @@ Future> getFilesPathsForAndroid(bool useSystemPicker) async { if (!useSystemPicker) { filePaths = (await file_manager.FileSelector.pick( Get.context!, - ))!; + )); } else { FilePickerResult? result = await FilePicker.platform.pickFiles( allowCompression: false, diff --git a/lib/global/global.dart b/lib/global/global.dart index c0e1106..2e2b90e 100644 --- a/lib/global/global.dart +++ b/lib/global/global.dart @@ -1,10 +1,5 @@ import 'dart:async'; -import 'dart:convert'; -import 'dart:io'; import 'package:clipboard_watcher/clipboard_watcher.dart'; -import 'package:device_info_plus/device_info_plus.dart'; -import 'package:dio/adapter.dart'; -import 'package:dio/dio.dart'; import 'package:flutter/services.dart'; import 'package:get/get.dart'; import 'package:global_repository/global_repository.dart'; diff --git a/lib/modules/home/home_page.dart b/lib/modules/home/home_page.dart index b6aaf58..1a37d77 100644 --- a/lib/modules/home/home_page.dart +++ b/lib/modules/home/home_page.dart @@ -113,7 +113,7 @@ class _HomePageState extends State { @override Widget build(BuildContext context) { return AnnotatedRegion( - value: OverlayStyle.dark, + value: OverlayStyle.light, child: Scaffold( body: Padding( padding: EdgeInsets.symmetric(horizontal: 10.w), diff --git a/lib/modules/home/nav.dart b/lib/modules/home/nav.dart index 50de74b..bce4a13 100644 --- a/lib/modules/home/nav.dart +++ b/lib/modules/home/nav.dart @@ -20,7 +20,6 @@ class Nav extends StatefulWidget { class _NavState extends State