exyte / fan-menu

Menu with a circular layout based on Macaw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use a single menu item.

mtwillet opened this issue · comments

When creating a menu with a single item

fanViewButton.items = [FanMenuButton(
id: "test",
image: UIImage(named: "Hook"),
color: Color.clear
)]

you get the following error.

Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.

Can you give some guidance on how to set it up to use a single menu option?

Hi @mtwillet. Thanks for pointing this out. Fix for this issue added to the master branch and will be included in the upcoming release.