颤振稳定性叶瓣图
As cross-platform frameworks (e.g. React Native and Flutter) and their design patterns mature, building functionalities has become easier than before which brought more focus on building user experiences.
随着跨平台框架(例如React Native和Flutter)及其设计模式的成熟,构建功能变得比以前更加容易,从而更加关注构建用户体验。
The theme plays an important role in user experience as it appears on every screen of an app.
主题出现在应用程序的每个屏幕上,在用户体验中起着重要作用。
However, building a user-friendly theme system is a non-trivial work which includes:
但是,构建用户友好的主题系统并非易事,其中包括:
- Making it dynamic (switch between themes within the apps). 使其动态化(在应用程序内的主题之间切换)。
- Building a UI for configuring themes 构建用于配置主题的UI
- Making the theme configurations persistent and available 使主题配置持久且可用
After researching the existing tutorials on building theme systems when I was building one for my side project, I found that most of them cover only one aspect of the story which can lead to unnecessary trial and error in practice.
在研究为辅助项目构建主题系统时,在研究了有关构建主题系统的现有教程后,我发现其中大多数教程仅涵盖了故事的一个方面,这可能导致实践中不必要的反复试验。
Also, most of the existing tutorials assume a fresh app that is good for learners but impractical for developers as UI/UX usually comes after core functionalities in