We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题,当主题为 ThemeMode.system时, 系统自动切换黑暗模式时,导航栏不会变黑,
步骤: 0. 系统暗色模式关闭
反过来也是一样
The text was updated successfully, but these errors were encountered:
确实存在这个问题。请尝试修改common/services/global.dart文件进行修复:
@override void didChangePlatformBrightness() { super.didChangePlatformBrightness(); if (_themeMode == ThemeMode.system) { refreshAppui(); //添加本行更新导航栏 updateNavigationBar(); } }
Sorry, something went wrong.
因为 refreshAppUi有个300ms的延迟, 下面的更新导航栏,并没有起效. 我给更新导航栏也加了个延迟,现在显示效果正确了
void didChangePlatformBrightness() { super.didChangePlatformBrightness(); if (_themeMode == ThemeMode.system) { refreshAppui(); delayed(500, () { updateNavigationBar(); }); } }
Great!
No branches or pull requests
如题,当主题为 ThemeMode.system时, 系统自动切换黑暗模式时,导航栏不会变黑,
步骤:
0. 系统暗色模式关闭
反过来也是一样
The text was updated successfully, but these errors were encountered: