建议:移除对 provider 和 cross_cache 的强依赖 / Suggestion: Remove strong dependency on provider and cross_cache #834
Unanswered
leeyisoft
asked this question in
Ideas & Requests
Replies: 1 comment 3 replies
-
Yeah, I saw Provider mentioned a couple of times - I’ll definitely have to look into it. But I’m curious - how does CrossCache bother you? It’s written by me and lives in the same repo, so it’s essentially part of flutter_chat_ui. It’s really o few lines of code without any setup - so what kind of burden does it really introduce? And if you’re not a fan of cached images on web, you’re totally free to use your own image implementation instead, basically omitting CrossCache. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
建议:移除对 provider 和 cross_cache 的强依赖 / Suggestion: Remove strong dependency on provider and cross_cache
背景 / Background
flutter_chat_ui 作为一个专注于 UI 组件和聊天特效封装的库,其主要目标应当是为开发者提供灵活的 UI 能力。
As a library focused on UI components and chat-related effects, the main goal of flutter_chat_ui should be to provide flexible UI capabilities for developers.
现状问题 / Current Issue
目前库中对 provider 框架和 cross_cache 的强依赖,限制了开发者的选择自由。如果项目本身不使用 provider,或者需要自定义缓存实现,会带来额外负担。
Currently, the strong dependency on the provider framework and cross_cache limits the freedom of choice for developers. If a project does not use provider, or needs a custom cache implementation, this introduces unnecessary burden.
建议 / Suggestion
建议将 provider 和 cross_cache 从核心依赖中移除,让调用者自行选择合适的状态管理和缓存方案。库本身只专注于 UI 和相关特效的接口封装。
It is recommended to remove provider and cross_cache from the core dependencies, allowing users to choose their own state management and cache solutions. The library itself should focus solely on UI and chat effects interface encapsulation.
预期收益 / Expected Benefits
这样可以让 flutter_chat_ui 更加通用和灵活,适配更多项目场景,减少不必要的耦合。
This would make flutter_chat_ui more general and flexible, suitable for more project scenarios, and reduce unnecessary coupling.
Beta Was this translation helpful? Give feedback.
All reactions