Reputation: 952
I have a MaterialApp
with TextField
s, 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
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
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