shyndman / flutter_layout_grid

A grid-based layout system for Flutter, inspired by CSS Grid Layout
MIT License
441 stars 43 forks source link

Overlap documentation? #90

Closed oravecz closed 2 years ago

oravecz commented 2 years ago

There is mention about support for overlap in the general README, however I have been through the docs, examples, and issues and cannot find mention of how this is accomplished. Can an example be attached to the docs or examples?

FWIW, I'm trying to create a layout something like this: image

shyndman commented 2 years ago

Hm, you're right. I'll have to add something.

If you're looking to be unblocked, the rule is pretty easy: the grid's children are drawn in order (similarly to a Stack).

In your case, the orange nav widget would come after green header widget in the children list, and you'd use the numeric row/column placement API to indicate the overlap.

Thanks for pointing that out. I'll put up an example shortly.

shyndman commented 2 years ago

I put up a simple example to demonstrate.

Screenshot of overlapping items example

Thanks for pointing that out!