hcbpassos / drag_select_grid_view

A grid that supports both dragging and tapping to select its items.
BSD 2-Clause "Simplified" License
133 stars 34 forks source link

childAspectRatio #15

Closed pishguy closed 3 years ago

pishguy commented 4 years ago

how can i set custom height for this library?

hcbpassos commented 4 years ago

Hey, @MahdiPishguy. Sorry for the delay.

how can i set custom height for this library?

Do you mean the height of the grid or of its children? The property mentioned by you (childAspectRatio) can be used like in any other grid:

DragSelectGridView(
  gridController: controller,
  itemBuilder: _buildItem,
  gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
    childAspectRatio: 0.5,
    maxCrossAxisExtent: 150,
  ),
),
hcbpassos commented 3 years ago

I'm closing this due to lack of activity.