Skip to content
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

Add missing layout widgets #659

Open
1 of 6 tasks
cmyr opened this issue Mar 14, 2020 · 3 comments
Open
1 of 6 tasks

Add missing layout widgets #659

cmyr opened this issue Mar 14, 2020 · 3 comments
Labels
enhancement adds or requests a new feature help wanted has no one working on it yet

Comments

@cmyr
Copy link
Member

cmyr commented Mar 14, 2020

There are a number of basic layout widgets in flutter that we don't have.

  • LimitedBox: A widget that checks if incoming constraints are infinite, and constraints them.
  • FittedBox: A widget that fits a child within itself, in a number of ways (fill, fit, fillHeight, etc).
  • FractionallySizedBox: use a fraction of available space
  • AspectRatio: maintain an aspect ratio (this should report if it is passed tight constraints) Aspect ratio box #1645
  • OverflowBox: allow a child to overflow
  • ConstrainedBox: impose arbitrary(?) constraints on child? I think this should probably be represented as Fn(BoxConstraints) -> BoxConstraints or something.

In any case: none of these are super-duper-urgent, but I think we would like to have all of them eventually.

@cmyr cmyr added enhancement adds or requests a new feature help wanted has no one working on it yet labels Mar 14, 2020
@kindlychung
Copy link
Contributor

kindlychung commented Mar 15, 2020

  • Rotate: allows rotation of its child.

@JAicewizard
Copy link
Contributor

just a question, but how is drawing outside the window border being handled? would the OverflowBox clip the content on the edge of the window? or would it signal the window to grow somehow. If the later is chosen, will other widgets resize too? will the background be painted on the part of the window that wasn't there before.
If the OverflowBox would grow the window without resizing or painting the background on the new area, it might be nice to use it for dropdowns, since they might not fit withing the window.

@cmyr
Copy link
Member Author

cmyr commented Oct 12, 2020

Outside of the window or outside of the widget?

I do not expect us to support drawing outside of the window; for cases like drop-down menus, we will be creating new modal windows for the menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement adds or requests a new feature help wanted has no one working on it yet
Projects
None yet
Development

No branches or pull requests

3 participants