google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 607 forks source link

Not working minimum window resize in windows OS #843

Closed Nandhini-Ravichandran closed 3 years ago

Nandhini-Ravichandran commented 3 years ago

setWindowMinSize not working in windows OS.

import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:window_size/window_size.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
    setWindowTitle('Flutter Demo');
    setWindowMinSize(const Size(500, 500));
  }
  runApp(SampleBrowser());
}
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 2.0.1, on Microsoft Windows [Version 10.0.18363.1440], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Professional 2019 16.8.3)
[√] Android Studio (version 3.3)
[√] VS Code (version 1.54.3)
[√] Connected device (2 available)
stuartmorgan commented 3 years ago

setWindowMinSize not working in windows OS.

Please elaborate on what "not working" means. I see a minimum window size being set when running your sample code.

Nandhini-Ravichandran commented 3 years ago

Minimum resize limit size that set in the setWindowMinSize(size) method not considering while resizing the window.

stuartmorgan commented 3 years ago

Please post a screenshot of the window resized as small as possible when run with your sample code, as I'm unable to reproduce this.

stuartmorgan commented 3 years ago

Closing due to lack of response. Without more information on how to reproduce this, there's no further action that can be taken.