Remove unused logic
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
4f7af964c6
commit
fed699b4ef
@ -8,7 +8,6 @@ import 'package:flutter/services.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:wakelock/wakelock.dart';
|
import 'package:wakelock/wakelock.dart';
|
||||||
import 'package:window_manager/window_manager.dart';
|
|
||||||
import 'package:flutter_custom_cursor/flutter_custom_cursor.dart';
|
import 'package:flutter_custom_cursor/flutter_custom_cursor.dart';
|
||||||
import 'package:flutter_improved_scrolling/flutter_improved_scrolling.dart';
|
import 'package:flutter_improved_scrolling/flutter_improved_scrolling.dart';
|
||||||
|
|
||||||
@ -47,7 +46,7 @@ class RemotePage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _RemotePageState extends State<RemotePage>
|
class _RemotePageState extends State<RemotePage>
|
||||||
with AutomaticKeepAliveClientMixin, WindowListener {
|
with AutomaticKeepAliveClientMixin {
|
||||||
Timer? _timer;
|
Timer? _timer;
|
||||||
String keyboardMode = "legacy";
|
String keyboardMode = "legacy";
|
||||||
final _cursorOverImage = false.obs;
|
final _cursorOverImage = false.obs;
|
||||||
@ -249,21 +248,6 @@ class _RemotePageState extends State<RemotePage>
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
void onWindowMinimize() {
|
|
||||||
_ffi.chatModel.setWindowMinimized(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void onWindowMaximize() {
|
|
||||||
_ffi.chatModel.setWindowMinimized(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
void onWindowRestore() {
|
|
||||||
_ffi.chatModel.setWindowMinimized(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool get wantKeepAlive => true;
|
bool get wantKeepAlive => true;
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,6 @@ class ChatModel with ChangeNotifier {
|
|||||||
OverlayState? _overlayState;
|
OverlayState? _overlayState;
|
||||||
OverlayEntry? chatIconOverlayEntry;
|
OverlayEntry? chatIconOverlayEntry;
|
||||||
OverlayEntry? chatWindowOverlayEntry;
|
OverlayEntry? chatWindowOverlayEntry;
|
||||||
bool _showOnWindowRestore = false;
|
|
||||||
bool _isWindowMinimized = false;
|
|
||||||
bool isConnManager = false;
|
bool isConnManager = false;
|
||||||
|
|
||||||
final ChatUser me = ChatUser(
|
final ChatUser me = ChatUser(
|
||||||
@ -69,13 +67,6 @@ class ChatModel with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setWindowMinimized(bool v) {
|
|
||||||
_isWindowMinimized = v;
|
|
||||||
if (!_isWindowMinimized && _showOnWindowRestore) {
|
|
||||||
_showOnWindowRestore = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
setOverlayState(OverlayState? os) {
|
setOverlayState(OverlayState? os) {
|
||||||
_overlayState = os;
|
_overlayState = os;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user