https://github.com/lianjiatech/bk_flutter_image
flutter image,降低内存使用
https://github.com/lianjiatech/bk_flutter_image
cache flutter image memory sdwebimage
Last synced: 11 months ago
JSON representation
flutter image,降低内存使用
- Host: GitHub
- URL: https://github.com/lianjiatech/bk_flutter_image
- Owner: LianjiaTech
- License: mit
- Created: 2021-03-11T09:39:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T03:50:36.000Z (over 3 years ago)
- Last Synced: 2024-04-13T18:05:33.090Z (about 2 years ago)
- Topics: cache, flutter, image, memory, sdwebimage
- Language: Dart
- Homepage:
- Size: 23.2 MB
- Stars: 48
- Watchers: 24
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# bk_flutter_image——Flutter图片内存优化库
## 背景
随着移动端业务中更多Flutter应用, 多图、大图复杂页面使用Flutter的Image.network(..) , FadeInImage.network(..)易出现出现OOM问题
* [实践](https://mp.weixin.qq.com/s/yUm4UFggYLgDbj4_JCjEdg)
## 指南
### Android依赖 Glide 4.11.0
```gradle
dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
}
```
### iOS 依赖 SDWebImage 5.12.6及以上 https://github.com/SDWebImage/SDWebImage/issues/3351
pod 'SDWebImage','5.12.6'
### 使用方式
```
BkFlutterImage(
url: imageUrl,
width: width,
height: height,
autoResize: true,
...
)
```
## License
详情参见 [LICENSE](./LICENSE)。
## 版本历史
具体版本历史请参看 [CHANGELOG.md](./CHANGELOG.md)。