switch window, close subwindow

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-09 09:01:06 +08:00
parent 927991c9de
commit 28b75fa9f7
6 changed files with 29 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_hbb/common.dart';
import 'package:flutter_hbb/consts.dart';
import 'package:flutter_hbb/utils/multi_window_manager.dart';
import 'package:get/get.dart';
const Color _bgColor = Color.fromARGB(255, 231, 234, 237);
@@ -184,7 +185,8 @@ class _AddButton extends StatelessWidget {
return _Hoverable(
onHover: (hover) => _hover.value = hover,
onPressed: (pressed) => _pressed.value = pressed,
onTapUp: () => debugPrint('+'), // TODO
onTapUp: () =>
rustDeskWinManager.call(WindowType.Main, "main_window_on_top", ""),
child: Obx((() => Container(
height: _kTabBarHeight,
decoration: ShapeDecoration(