Fix. Custom client, ui bugs (#7405)

* Fix. Custom client, ui bugs

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* trivial

Signed-off-by: fufesou <shuanglongchen@yeah.net>

---------

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-03-16 15:37:23 +08:00 committed by GitHub
parent 0808672b6e
commit efd1f24ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -3122,8 +3122,8 @@ Widget loadIcon(double size) {
var imcomingOnlyHomeSize = Size(280, 300);
Size getIncomingOnlyHomeSize() {
final magicWidth = Platform.isWindows ? 11.0 : 0.0;
final magicHeight = 8.0;
final magicWidth = Platform.isWindows ? 11.0 : 2.0;
final magicHeight = 10.0;
return imcomingOnlyHomeSize +
Offset(magicWidth, kDesktopRemoteTabBarHeight + magicHeight);
}

View File

@ -577,6 +577,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
child: OutlinedButton(
onPressed: () {
SystemNavigator.pop(); // Close the application
// https://github.com/flutter/flutter/issues/66631
if (Platform.isWindows) {
exit(0);
}
},
child: Text(translate('Quit')),
),

View File

@ -375,7 +375,7 @@ class DesktopTab extends StatelessWidget {
Expanded(
child: GestureDetector(
// custom double tap handler
onTap: showMaximize
onTap: !bind.isIncomingOnly() && showMaximize
? () {
final current = DateTime.now().millisecondsSinceEpoch;
final elapsed = current - _lastClickTime;