marianocordoba / fab-circular-menu

A Flutter package to create a nice circular menu using a Floating Action Button.
https://pub.dev/packages/fab_circular_menu
MIT License
199 stars 71 forks source link

FAB icon color #17

Closed sunalive closed 3 years ago

sunalive commented 4 years ago

There is no option to set/change the FAB icon color. It defaults to black and no way to change it.

image

marianocordoba commented 4 years ago

Hi @sunalive!

You can use fabOpenIcon and fabCloseIcon properties. If you want to change the color of the icon, you can use an Icon widget and set the color property:

FabCircularMenu(
  children: [
    // ...
  ],
  fabOpenIcon: Icon(Icons.menu, color: Colors.white),
  fabCloseIcon: Icon(Icons.close, color: Colors.white)
)

I hope this works for you!

sunalive commented 3 years ago

Thanks. That worked!