hasan-hm1 / circular_menu

A simple animated circular menu for Flutter, Adjustable radius, colors, alignment, animation curve and animation duration.
MIT License
99 stars 52 forks source link

[Question] Can it be use in ListView? #2

Closed jasonlaw closed 4 years ago

jasonlaw commented 4 years ago

Hi @hasan-hm1 ,

This is a very cool widget!

Can we use this in a list view? In my list view, I have ListTile as list item, can I place this menu in the list item?

Thanks in advance.

hasan-hm1 commented 4 years ago

Hi @jasonlaw

Yes, if you want to place it in a ListTile you can :

  1. wrap the CircularMenu with a Container and specify the constraints , then you can place it in title , subTitle , leading or trailling in the ListTile.

or

  1. wrap the CircularMenu with a Container and specify the constraints , then use CircularMenu directly as a list item and assign the ListTileto backgroundWidgetin the CircularMenu.

I hope this helped you.