How to set text color to black in Flutter web app when device display mode is dark?
P粉216807924
P粉216807924 2023-09-11 20:16:42
0
1
542

I've created a web app in Flutter and it works as expected, but I'm having issues with some mobile devices (especially the default browser on Samsung devices, it works fine on Chrome ). On the login page, my page background color is white and the text form field text color is black, but when I try to type on the text form field, it appears white (when the device display theme is dark). I tried hardcoding black but it doesn't work with dark theme. I also tried applying the theme under MaterialApp but nothing worked. Please suggest what I can do to resolve this issue. I want the background color to be white and the text color to be black.

UPDATE:-I have the same problem Question

P粉216807924
P粉216807924

reply all(1)
P粉835428659

Your question is not clear, please read the question guide, by the way, if you want to adjust the color by theme, you should check Official tutorial on sharing colors using themes

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template