Skip to content

Commit

Permalink
fix: Minimum aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Jan 5, 2025
1 parent 7cc7a4c commit 7648ff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/reorderable_static_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ class StaticGridState extends State<StaticGrid> {
key: ValueKey(index),
width: childWidth,
child: AspectRatio(
aspectRatio: widget.childAspectRatio,
aspectRatio:
widget.childAspectRatio.clamp(0.1, double.infinity),
child: realChildren[index],
),
);
Expand Down

0 comments on commit 7648ff1

Please sign in to comment.