Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@Letal1s

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?

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