Jamalianpour / easy_sidemenu

An easy to use side menu (navigation rail) in flutter and can used for navigations
https://pub.dev/packages/easy_sidemenu
MIT License
145 stars 70 forks source link

Error when trying to use builder instead of icon and title. #39

Closed felixkriechbaum closed 1 year ago

felixkriechbaum commented 1 year ago

When I try to use the builder instead of the icon & title I get following error:

Exception has occurred. _AssertionError ('package:easy_sidemenu/src/side_menu_item.dart': Failed assertion: line 25 pos 16: 'title != null || icon != null': Title and icon should not be empty at the same time)

You wrote on pub.dev/packages/easy_sidemenu

Instead of title and icon in SideMenuItem can use builder to create your customize items: image

MyCode: image

Jamalianpour commented 1 year ago

Oh sorry you right It will be fixed in next version