diff --git a/lib/src/window_manager.dart b/lib/src/window_manager.dart index a61ee83a0128bbe92a3ce29990fc8ebd1a041bee..a7cc46fb0ba6e311e04492903c7ecca9ea112c59 100644 --- a/lib/src/window_manager.dart +++ b/lib/src/window_manager.dart @@ -557,10 +557,10 @@ class WindowManagerPlus { ); return Rect.fromLTWH( - resultData['x'], - resultData['y'], - resultData['width'], - resultData['height'], + (resultData['x']).toDouble(), + (resultData['y']).toDouble(), + (resultData['width']).toDouble(), + (resultData['height']).toDouble(), ); }