GithubHelp home page GithubHelp logo

Comments (2)

Kuingsmile avatar Kuingsmile commented on June 1, 2024

PicHoro的版本

v1.9.8

系统信息

OPPO Find X3

问题重现 | Bug reproduce

ColorOS13.0,主题设置选择跟随系统后出现灰屏,退出重新打开无效。需要卸载重新安装

相关日志 | Logs

No response

已复现,定位bug位置是’/lib/utils/theme_provider.dart‘文件中的setTheme函数。

bug产生原因:
setTheme函数中,当设置主题为跟随系统时,输入参数为'auto‘,下面的代码错误的将'auto’未经转换直接赋值给了_keyThemeColor,导致’/lib/main.dart‘中的themeDataMap[appInfo.keyThemeColor]!部分代码无法通过非空值检验,从而导致APP无法启动。

SpUtil.putString('key_theme_color', themeColor);
_keyThemeColor = themeColor;

如下修改后bug得到修复

SpUtil.putString('key_theme_color', _themeColor);
_keyThemeColor = _themeColor;

该bug将在V1.99版本中进行修复,感谢反馈,在V1.98版本中请暂时不要选择跟随系统避免无法启动APP。

from pichoro.

Kuingsmile avatar Kuingsmile commented on June 1, 2024

新版本已修复

from pichoro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.