Closed slovnicki closed 3 years ago
I noticed that some calculations are throwing hexagons off from being centered. After all I've added padding attribute to HexagonWidget where it is easier apply it. And I will only use single double to describe padding as not equal horizontal and vertical padding would deform hexagon shape.
Ok. That seems reasonable.
hexagonPadding
is of typeEdgeInsetsGeometry
and is used forPadding
around allHexagonWidget
tiles in grid:It's not required and the default value is, naturally,
const EdgeInsets.all(0.0)
.This also affects the available space for hexagons, so I updated
_hexSize
to take this into consideration by usinghexagonPadding.horizontal
orhexagonPadding.vertical
, as needed. This means thathexagonPadding
can really be anyEdgeInsets
, for exampleEdgeInsets.only(top: 2.0, left: 6.0)
.I also added the example usage to
example/
, but you decide whether to include this inREADME
screenshots or not, or remove it from example altogether.Here is the screenshot of how this looks by applying it to V-Grid example: