bump flutter to 3.13.9 and bridge to 1.79

This commit is contained in:
rustdesk
2023-10-31 21:10:23 +08:00
parent f5c1133fc5
commit c2703d215b
20 changed files with 384 additions and 760 deletions

View File

@@ -15,7 +15,7 @@ import 'package:path_provider/path_provider.dart';
import '../common.dart';
import '../generated_bridge.dart';
class RgbaFrame extends Struct {
final class RgbaFrame extends Struct {
@Uint32()
external int len;
external Pointer<Uint8> data;

View File

@@ -8,7 +8,7 @@ import 'package:flutter_hbb/main.dart';
import 'package:flutter_hbb/models/chat_model.dart';
import 'package:flutter_hbb/models/platform_model.dart';
import 'package:get/get.dart';
import 'package:wakelock/wakelock.dart';
import 'package:wakelock_plus/wakelock_plus.dart';
import 'package:window_manager/window_manager.dart';
import '../common.dart';
@@ -380,7 +380,7 @@ class ServerModel with ChangeNotifier {
await bind.mainStartService();
updateClientState();
if (Platform.isAndroid) {
Wakelock.enable();
WakelockPlus.enable();
}
}
@@ -393,7 +393,7 @@ class ServerModel with ChangeNotifier {
notifyListeners();
if (!Platform.isLinux) {
// current linux is not supported
Wakelock.disable();
WakelockPlus.disable();
}
}