rgisi
rgisi

Reputation: 952

How can I change the default PopupMenu's text color?

I have a MaterialApp with TextFields, and they have the default popup menu (with items "cut", "copy" and "paste").

My problem is: Their text color is always white - so the items are all invisible because my background is also white!

How can I change the text color of the popup items?

Upvotes: 2

Views: 1506

Answers (2)

K.Amanov
K.Amanov

Reputation: 1638

In my case only helped to change the brightness of the Theme to Brightness.light

But be ready for number of UI changes after changing app's main theme...

Upvotes: 0

rgisi
rgisi

Reputation: 952

I have found the culprit: My ButtonTheme defined a colorScheme: ColorScheme.dark(), which made the button text white. Removing the colorScheme line let the button text be black again.

Upvotes: 3

Related Questions