mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
set image center when remote resolution is changed
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -977,10 +977,10 @@ Future<bool> matchPeer(String searchText, Peer peer) async {
|
||||
|
||||
/// Get the image for the current [platform].
|
||||
Widget getPlatformImage(String platform, {double size = 50}) {
|
||||
platform = platform.toLowerCase();
|
||||
if (platform == 'mac os') {
|
||||
if (platform == kPeerPlatformMacOS) {
|
||||
platform = 'mac';
|
||||
} else if (platform != 'linux' && platform != 'android') {
|
||||
} else if (platform != kPeerPlatformLinux &&
|
||||
platform != kPeerPlatformAndroid) {
|
||||
platform = 'win';
|
||||
}
|
||||
return SvgPicture.asset('assets/$platform.svg', height: size, width: size);
|
||||
|
||||
Reference in New Issue
Block a user