Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

[window_size] setWindowMinSize and setWindowMaxSize not setting correct window size on Linux #854

Description

@Letal1s

When making a flutter app for Linux, the initial size can be set by altering the parameters of gtk_window_set_default_size() in my_application.cc:
gtk_window_set_default_size(window, 450, 750);

Then trying to set maximum and minimum sizes using the window_size plugin in dart code using the same dimensions:

final fixedSize = Size(450, 750);
setWindowMinSize(fixedSize);
setWindowMaxSize(fixedSize);

However when setting this maximum and minimum the window is resized to below the size set initially in the native code using GTK, despite using the same dimensions. Wouldn't the expected behaviour be for the app not to change size at all?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions