huextrat / menu_button

Flutter plugin to display a popup menu button widget with handsome design and easy to use.
https://pub.dev/packages/menu_button
MIT License
64 stars 23 forks source link

The getter 'backgroundColor' isn't defined for the type 'ThemeData'. #36

Open lucas-sesti opened 2 months ago

lucas-sesti commented 2 months ago

Describe the bug I'm trying to build the app with the latest flutter stable version and im getting the error.

To Reproduce Steps to reproduce the behavior:

  1. Update the flutter to the latest version
  2. Run flutter buld appbundle (or ios)
  3. See error

Expected behavior Build normally

Error The getter 'backgroundColor' isn't defined for the type 'ThemeData'.

muhammad67uzair commented 1 month ago

Any workarounds for this in the mean time?

lucas-sesti commented 1 month ago

I'll make a pull request, but I don't know if he is using this repository to accept... but the workaround is copy the full library (it's small code, one file only), and remove this piece of code that uses background color... and when he fix, I'll use again the library instead the copy