Skip to content

How to make the length and width of the window fixed ? #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wupeaking opened this issue Apr 25, 2019 · 4 comments · Fixed by #145
Closed

How to make the length and width of the window fixed ? #126

wupeaking opened this issue Apr 25, 2019 · 4 comments · Fixed by #145
Assignees
Labels
enhancement New feature or request

Comments

@wupeaking
Copy link

Flutter version

Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (10 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

I want to know how to set the length and width fixed. It seems flutter have no such api. (;′⌒`)

@pchampio
Copy link
Member

For this and similar requests read: GLFW Plugin example

@GeertJohan
Copy link
Member

GeertJohan commented May 18, 2019

After consideration and brainstorms on plugins vs options design, @Drakirus and I have decided to indeed implement this feature in the go-flutter package as Option. PR coming soon ™️

@GeertJohan GeertJohan reopened this May 18, 2019
@GeertJohan GeertJohan added the enhancement New feature or request label May 19, 2019
@GeertJohan GeertJohan self-assigned this May 19, 2019
@maheshbhattaraai
Copy link

Please add min width and min height bound only .Not bound for Max height and width in flutter.WindowInitialDimensions() function. Which must be optional parameter for minium bounded height and width.

@pchampio
Copy link
Member

pchampio commented Aug 23, 2019

Glfw uses 4 parameters in SetSizeLimits https://www.glfw.org/docs/latest/group__window.html#gac314fa6cec7d2d307be9963e2709cc90
Use glfw.DontCare as the glfw says.

Any big values also does the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

4 participants