mirror of
https://github.com/gskinnerTeam/flutter-wonderous-app.git
synced 2025-08-06 09:39:31 +08:00
Fix for #183, only set min-size on macOs and Windows, linux appears to have issues despite the package claiming support.
This commit is contained in:
@ -35,7 +35,8 @@ class AppLogic {
|
||||
Future<void> bootstrap() async {
|
||||
debugPrint('bootstrap start...');
|
||||
// Set min-sizes for desktop apps
|
||||
if (PlatformInfo.isDesktop) {
|
||||
// TODO: Test on Linux and confirm whether it's safe to call there, according to issue #183 its not.
|
||||
if (PlatformInfo.isWindows || PlatformInfo.isMacOS) {
|
||||
await DesktopWindow.setMinWindowSize($styles.sizes.minAppSize);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user