Add missing layout widgets
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
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
- [x] [`AspectRatio`]: maintain an aspect ratio (this should report if it is passed tight constraints) #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.
[`LimitedBox`]: https://api.flutter.dev/flutter/widgets/LimitedBox-class.html
[`FractionallySizedBox`]: https://api.flutter.dev/flutter/widgets/FractionallySizedBox-class.html
[`AspectRatio`]: https://api.flutter.dev/flutter/widgets/AspectRatio-class.html
[`OverflowBox`]: https://api.flutter.dev/flutter/widgets/OverflowBox-class.html
[`ConstrainedBox`]: https://api.flutter.dev/flutter/widgets/ConstrainedBox-class.html
[`FittedBox`]: https://api.flutter.dev/flutter/widgets/FittedBox-class.html
In any case: none of these are super-duper-urgent, but I think we would like to have all of them eventually.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Choose one unchecked widget from the list, read its linked Flutter documentation, and compare it with the existing layout-widget implementation and behavior in this repository. Done means the selected widget is implemented with behavior matching the documented widget; the issue does not define testing details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100