linebender / linebender/druid

Add missing layout widgets

Open
#659 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.