buildWithManualLayout method
HexagonalGrid
buildWithManualLayout({})
手动指定 widgets 的位置和尺寸
Implementation
HexagonalGrid buildWithManualLayout({
required List<HexWidget> widgets,
Function(HexCoordinate)? onCellTap,
Function(HexCoordinate)? onCellLongPress,
Function(HexCoordinate?)? onCellHover,
}) {
return HexagonalGrid(
config: config,
widgets: widgets,
onCellTap: onCellTap,
onCellLongPress: onCellLongPress,
onCellHover: onCellHover,
);
}