linebender/druid

Add missing layout widgets

Open

#659 aperta il 14 mar 2020

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (567 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (9091 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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) #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.

Guida contributor