-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
# bk_flutter_image | ||
# bk_flutter_image——Flutter图片内存优化库 | ||
|
||
A new flutter plugin project. | ||
## 背景 | ||
随着移动端业务中更多Flutter应用, 多图、大图复杂页面使用Flutter的Image.network(..) , FadeInImage.network(..)易出现出现OOM问题 | ||
* [实践](https://mp.weixin.qq.com/s/yUm4UFggYLgDbj4_JCjEdg) | ||
|
||
## Getting Started | ||
## 指南 | ||
|
||
This project is a starting point for a Flutter | ||
[plug-in package](https://flutter.dev/developing-packages/), | ||
a specialized package that includes platform-specific implementation code for | ||
Android and/or iOS. | ||
### Android依赖 Glide 4.11.0 | ||
|
||
For help getting started with Flutter, view our | ||
[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
```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)。 |