Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
472 views
in Technique[技术] by (71.8m points)

Flutter Text inside Text Field becoming white automatically for iOS Dark mode

When I am using iOS dark mode. Then flutter Text field text color is not visible. How to solve this problem ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I guess this could work if you use Colors.black as text color. I guess the Cupertino template uses CupertinoColors.black as text color but not the equivalent for the background. Even though this color is called black, it turns white in dark mode. I think this is not the case with Material colors. Otherwise define your own black color with RGB - or even better, use CupertinoColors.white as background (as it will turn black)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...