marianocordoba/fab-circular-menu

One option should not be allowed

Closed this issue · 0 comments

If there is only one option passed to this widget, it will crash because of this line trying to divide by zero:

  final double angle = 90.0 / (widgets.length * 2 - 2) * (index * 2);

I discovered it by pressing save after adding only one option, and hot reload resulted in an error.