Flutter project disables dark mode under iOS

Add the following configuration to the plist of the iOS project

1.设置View controller-based status bar appearance

In the info.plist file View controller-based status bar appearance
->Boolean-> YES, The controller’s priority for the status bar setting is higher than app
->Boolean-> NO, then the app shall prevail, and the controller setting status bar setting is invalid

2. Set User Interface Style

In the info.plist file User Interface Style
->String-> Light, The app disables dark mode, and the app supports dark mode by default

3.info.plist

There are pictures and the truth
info

Guess you like

Origin blog.csdn.net/gjm_123/article/details/107730527