Skip to content

Commit eabbbfc

Browse files
committed
📝 Improve documents
1 parent 0199eec commit eabbbfc

File tree

4 files changed

+102
-92
lines changed

4 files changed

+102
-92
lines changed

CHANGELOG.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ To know more about breaking changes, see [Migration Guide][].
481481

482482
- Make widgets constant.
483483
- Remove system ui overlays update.
484-
- Migrate files to compatible with Flutter `1.20.0` .
484+
- Migrate files to compatible with Flutter `1.20.0`.
485485
- Sync analysis options.
486486

487487
## 4.1.0+2
@@ -506,23 +506,23 @@ To know more about breaking changes, see [Migration Guide][].
506506

507507
### Breaking changes
508508

509-
- `TextDelegate` -> `AssetsPickerTextDelegate` .
509+
- `TextDelegate` -> `AssetsPickerTextDelegate`.
510510

511511
## 3.0.0+1
512512

513513
- Constraint dependencies version.
514514

515515
## 3.0.0
516516

517-
- Add `FilterOptionGroup`. Fix #41 .
518-
- Add `SpecialPickerType`. Fix #37 .
519-
- Add custom item build mode. Fix #39 .
517+
- Add `FilterOptionGroup`. (#41)
518+
- Add `SpecialPickerType`. (#37)
519+
- Add custom item build mode. (#39)
520520

521521
## 2.2.1
522522

523-
- Introduce `ColorScheme` for theme details. Fixed #32 .
523+
- Introduce `ColorScheme` for theme details. (#32)
524524
- Enhance RTL compatibility.
525-
- Enlarge select indicator's size. Related to #33 .
525+
- Enlarge select indicator's size. (#33)
526526

527527
## 2.2.0+2
528528

@@ -534,7 +534,7 @@ To know more about breaking changes, see [Migration Guide][].
534534

535535
## 2.2.0
536536

537-
- A brand new example.
537+
- A brand-new example.
538538
- Add `SortPathDelegate`.
539539
- Using zoom page transition for viewer.
540540
- Slightly add padding to viewer's assets list view.
@@ -547,14 +547,14 @@ To know more about breaking changes, see [Migration Guide][].
547547
## 2.1.0
548548

549549
- Add present english text delegate.
550-
- Refactored theme constructor and getter with theme capability #22 .
551-
- Update color scheme usage for assets grid #23 .
552-
- Update picker viewer style for apple OS.
553-
- Fix bottom bar disappearing on apple os when it's single asset mode.
550+
- Refactored theme constructor and getter with theme capability. (#22)
551+
- Update color scheme usage for assets grid. (#23)
552+
- Update picker viewer style for Apple OS.
553+
- Fix bottom bar disappearing on Apple OS when it's single asset mode.
554554

555555
## 2.0.2
556556

557-
- Fix audio paused accidentally when the app is launching on Android #18 .
557+
- Fix audio paused accidentally when the app is launching on Android. (#18)
558558

559559
## 2.0.1
560560

@@ -574,11 +574,11 @@ To know more about breaking changes, see [Migration Guide][].
574574
## 1.7.0
575575

576576
- Hide detail display when video start to play.
577-
- Switch to `ExtendedImageGesturePageView`. Fix #16 .
577+
- Switch to `ExtendedImageGesturePageView`. (#16)
578578
- Add fully theme support.
579-
- Add MacOS support.
580-
- Add delay for the first init method to prevent stuck in page routing. Fix #13 .
581-
- Update widgets style on iOS. Fix #14 .
579+
- Add macOS support.
580+
- Add delay for the first init method to prevent stuck in page routing. (#13)
581+
- Update widgets style on iOS. (#14)
582582
- Fix state of the example not updated after the result was returned without input method activated.
583583

584584
## 1.6.0

README-ZH.md

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ that can be found in the LICENSE file. -->
44

55
# Flutter WeChat Assets Picker
66

7-
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=42a012&label=%E7%A8%B3%E5%AE%9A%E7%89%88&logo=dart&style=flat-square)](https://pub.flutter-io.cn/packages/wechat_assets_picker)
8-
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=42a012&include_prereleases&label=%E5%BC%80%E5%8F%91%E7%89%88&logo=dart&style=flat-square)](https://pub.flutter-io.cn/packages/wechat_assets_picker)
7+
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?label=%E7%A8%B3%E5%AE%9A%E7%89%88&logo=dart&style=flat-square)](https://pub.flutter-io.cn/packages/wechat_assets_picker)
8+
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=9d00ff&include_prereleases&label=%E5%BC%80%E5%8F%91%E7%89%88&logo=dart&style=flat-square)](https://pub.flutter-io.cn/packages/wechat_assets_picker)
99
[![Build status](https://img.shields.io/github/actions/workflow/status/fluttercandies/flutter_wechat_assets_picker/runnable.yml?branch=main&label=CI&logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/actions/workflows/runnable.yml)
1010
[![CodeFactor](https://img.shields.io/codefactor/grade/github/fluttercandies/flutter_wechat_assets_picker?label=%E4%BB%A3%E7%A0%81%E8%B4%A8%E9%87%8F&logo=codefactor&logoColor=%23ffffff&style=flat-square)](https://www.codefactor.io/repository/github/fluttercandies/flutter_wechat_assets_picker)
1111
[![GitHub license](https://img.shields.io/github/license/fluttercandies/flutter_wechat_assets_picker?label=%E5%8D%8F%E8%AE%AE&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/main/LICENSE)
1212

13-
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
1413
[![GitHub stars](https://img.shields.io/github/stars/fluttercandies/flutter_wechat_assets_picker?logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/stargazers)
1514
[![GitHub forks](https://img.shields.io/github/forks/fluttercandies/flutter_wechat_assets_picker?logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/network)
15+
[![Awesome Flutter](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/Solido/awesome-flutter)
1616
<a target="_blank" href="https://jq.qq.com/?_wv=1027&k=5bcc0gy"><img border="0" src="https://pub.idqqimg.com/wpa/images/group.png" alt="FlutterCandies" title="FlutterCandies"></a>
1717

1818
Language: [English](README.md) | 中文
@@ -32,35 +32,39 @@ Language: [English](README.md) | 中文
3232
你可以通过 PR 提交你的自定义实现。更多信息请参考
3333
[贡献自定义实现](example/lib/customs/CONTRIBUTING.md)
3434

35-
## 目录 🗂
36-
37-
* [迁移指南](#迁移指南-%EF%B8%8F)
38-
* [特性](#特性-)
39-
* [截图](#截图-)
40-
* [准备工作](#准备工作-)
41-
* [版本兼容](#版本兼容)
42-
* [Flutter](#flutter)
43-
* [Android](#android)
44-
* [权限](#权限)
45-
* [iOS](#ios)
46-
* [macOS](#macos)
47-
* [使用方法](#使用方法-)
48-
* [简单的使用方法](#简单的使用方法)
49-
* [更详细的使用方法](#更详细的使用方法)
50-
* [国际化](#国际化)
51-
* [使用自定义代理](#使用自定义代理)
52-
* [展示选中的资源](#展示选中的资源)
53-
* [注册资源变化回调](#注册资源变化回调)
54-
* [自定义类型或 UI](#自定义类型或-ui)
55-
* [常见问题](#常见问题-)
56-
* [Execution failed for task ':photo_manager:compileDebugKotlin'](#execution-failed-for-task-photo_managercompiledebugkotlin)
57-
* [如何获取资源的路径以进行上传或编辑等操作的整合?](#如何获取资源的路径以进行上传或编辑等操作的整合)
58-
* [`File``Uint8List` 创建 `AssetEntity` 的方法](#从-file-或-uint8list-创建-assetentity-的方法)
59-
* [控制台提示 'Failed to find GeneratedAppGlideModule'](#控制台提示-failed-to-find-generatedappglidemodule)
60-
61-
## 迁移指南 ♻️
62-
63-
查看 [迁移指南][]
35+
查看 [迁移指南][] 了解如何从破坏性改动中迁移为可用代码。
36+
37+
<!-- TOC -->
38+
* [Flutter WeChat Assets Picker](#flutter-wechat-assets-picker)
39+
* [特性 ✨](#特性-)
40+
* [截图 📸](#截图-)
41+
* [开始前的注意事项 ‼️](#开始前的注意事项-)
42+
* [准备工作 🍭](#准备工作-)
43+
* [版本兼容](#版本兼容)
44+
* [Flutter](#flutter)
45+
* [Android](#android)
46+
* [权限](#权限)
47+
* [iOS](#ios)
48+
* [macOS](#macos)
49+
* [使用方法 📖](#使用方法-)
50+
* [简单的使用方法](#简单的使用方法)
51+
* [更详细的使用方法](#更详细的使用方法)
52+
* [国际化](#国际化)
53+
* [使用自定义代理](#使用自定义代理)
54+
* [一般的调用选择情况](#一般的调用选择情况)
55+
* [多选资源](#多选资源)
56+
* [单选资源](#单选资源)
57+
* [自定义选择器](#自定义选择器)
58+
* [展示选中的资源](#展示选中的资源)
59+
* [注册资源变化回调](#注册资源变化回调)
60+
* [自定义类型或 UI](#自定义类型或-ui)
61+
* [常见问题 ❔](#常见问题-)
62+
* [Execution failed for task ':photo_manager:compileDebugKotlin'](#execution-failed-for-task---photomanager--compiledebugkotlin)
63+
* [如何获取资源的路径以进行上传或编辑等操作的整合?](#如何获取资源的路径以进行上传或编辑等操作的整合)
64+
* [`File``Uint8List` 创建 `AssetEntity` 的方法](#从-file-或-uint8list-创建-assetentity-的方法)
65+
* [控制台提示 'Failed to find GeneratedAppGlideModule'](#控制台提示--failed-to-find-generatedappglidemodule)
66+
* [致谢](#致谢)
67+
<!-- TOC -->
6468

6569
## 特性 ✨
6670

@@ -175,12 +179,12 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
175179

176180
### iOS
177181

178-
1.`ios/Podfile` 中指定最低构建版本至 **9.0**
182+
1.`ios/Podfile` 中指定最低构建版本至 **1.0**
179183
```ruby
180-
platform :ios, '9.0'
184+
platform :ios, '11.0'
181185
```
182-
2. 将以下内容添加至 `info.plist`
183-
```plist
186+
2. 将以下内容添加至 `Info.plist`
187+
```
184188
<key>NSAppTransportSecurity</key>
185189
<dict>
186190
<key>NSAllowsArbitraryLoads</key>
@@ -200,7 +204,7 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
200204
接着根据下面的截图将最低构建版本提升至 **10.15**
201205
3. ![step 1](https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67v4yk4j30qy0b50u0.jpg)
202206
4. ![step 2](https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67vd3f2j30jv04zgm5.jpg)
203-
5. 与 iOS 一样,添加相同的内容到 `info.plist` 里。
207+
5. 与 iOS 一样,添加相同的内容到 `Info.plist` 里。
204208

205209
## 使用方法 📖
206210

README.md

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ that can be found in the LICENSE file. -->
55
# Flutter WeChat Assets Picker
66

77
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?logo=dart&label=stable&style=flat-square)](https://pub.dev/packages/wechat_assets_picker)
8-
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=42a012&include_prereleases&label=dev&logo=dart&style=flat-square)](https://pub.dev/packages/wechat_assets_picker)
8+
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=9d00ff&include_prereleases&label=dev&logo=dart&style=flat-square)](https://pub.dev/packages/wechat_assets_picker)
99
[![Build status](https://img.shields.io/github/actions/workflow/status/fluttercandies/flutter_wechat_assets_picker/runnable.yml?branch=main&label=CI&logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/actions/workflows/runnable.yml)
1010
[![CodeFactor](https://img.shields.io/codefactor/grade/github/fluttercandies/flutter_wechat_assets_picker?logo=codefactor&logoColor=%23ffffff&style=flat-square)](https://www.codefactor.io/repository/github/fluttercandies/flutter_wechat_assets_picker)
1111
[![GitHub license](https://img.shields.io/github/license/fluttercandies/flutter_wechat_assets_picker?style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/main/LICENSE)
1212

13-
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
1413
[![GitHub stars](https://img.shields.io/github/stars/fluttercandies/flutter_wechat_assets_picker?logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/stargazers)
1514
[![GitHub forks](https://img.shields.io/github/forks/fluttercandies/flutter_wechat_assets_picker?logo=github&style=flat-square)](https://github.com/fluttercandies/flutter_wechat_assets_picker/network)
15+
[![Awesome Flutter](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/Solido/awesome-flutter)
1616
<a target="_blank" href="https://jq.qq.com/?_wv=1027&k=5bcc0gy"><img border="0" src="https://pub.idqqimg.com/wpa/images/group.png" alt="FlutterCandies" title="FlutterCandies"></a>
1717

1818
Language: English | [中文](README-ZH.md)
@@ -32,35 +32,40 @@ and head over to
3232
Current WeChat version that UI based on: **8.x**
3333
UI designs will be updated following the WeChat update in anytime.
3434

35-
## Category 🗂
36-
37-
* [Migration Guide](#migration-guide-)
38-
* [Features](#features-)
39-
* [Screenshots](#screenshots-)
40-
* [Preparing for use](#preparing-for-use-)
41-
* [Versions compatibility](#versions-compatibility)
42-
* [Flutter](#flutter)
43-
* [Android](#android)
44-
* [Permissions](#permissions)
45-
* [iOS](#ios)
46-
* [macOS](#macos)
47-
* [Usage](#usage-)
48-
* [Simple usage](#simple-usage)
49-
* [Detailed usage](#detailed-usage)
50-
* [Localizations](#localizations)
51-
* [Using custom delegate](#using-custom-delegate)
52-
* [Display selected assets](#display-selected-assets)
53-
* [Register assets change observe callback](#register-assets-change-observe-callback)
54-
* [Customize with your own type or UI](#customize-with-your-own-type-or-ui)
55-
* [Frequently asked question](#frequently-asked-question-)
56-
* [Execution failed for task ':photo_manager:compileDebugKotlin'](#execution-failed-for-task-photo_managercompiledebugkotlin)
57-
* [How can I get path from the `AssetEntity` to integrate with `File` object, upload or edit?](#how-can-i-get-path-from-the-assetentity-to-integrate-with-file-object-upload-or-edit)
58-
* [Create `AssetEntity` from `File` or `Uint8List` (rawData)](#create-assetentity-from-file-or-uint8list-rawdata)
59-
* [Console warning 'Failed to find GeneratedAppGlideModule'](#glide-warning-failed-to-find-generatedappglidemodule)
60-
61-
## Migration Guide ♻️
62-
63-
See [Migration Guide][].
35+
See the [Migration Guide][] to learn how to migrate between breaking changes.
36+
37+
<!-- TOC -->
38+
* [Flutter WeChat Assets Picker](#flutter-wechat-assets-picker)
39+
* [Features ✨](#features-)
40+
* [Screenshots 📸](#screenshots-)
41+
* [READ THIS FIRST ‼️](#read-this-first-)
42+
* [Preparing for use 🍭](#preparing-for-use-)
43+
* [Versions compatibility](#versions-compatibility)
44+
* [Flutter](#flutter)
45+
* [Android](#android)
46+
* [Permissions](#permissions)
47+
* [iOS](#ios)
48+
* [macOS](#macos)
49+
* [Usage 📖](#usage-)
50+
* [Simple usage](#simple-usage)
51+
* [Detailed usage](#detailed-usage)
52+
* [Localizations](#localizations)
53+
* [Using custom delegate](#using-custom-delegate)
54+
* [Regular picking](#regular-picking)
55+
* [Multiple assets picking](#multiple-assets-picking)
56+
* [Single asset picking](#single-asset-picking)
57+
* [Custom pickers](#custom-pickers)
58+
* [Display selected assets](#display-selected-assets)
59+
* [Register assets change observe callback](#register-assets-change-observe-callback)
60+
* [Customize with your own type or UI](#customize-with-your-own-type-or-ui)
61+
* [Frequently asked question ❔](#frequently-asked-question-)
62+
* [Execution failed for task ':photo_manager:compileDebugKotlin'](#execution-failed-for-task---photomanager--compiledebugkotlin)
63+
* [How can I get path from the `AssetEntity` to integrate with `File` object, upload or edit?](#how-can-i-get-path-from-the-assetentity-to-integrate-with-file-object-upload-or-edit)
64+
* [Create `AssetEntity` from `File` or `Uint8List` (rawData)](#create-assetentity-from-file-or-uint8list--rawdata-)
65+
* [Glide warning 'Failed to find GeneratedAppGlideModule'](#glide-warning--failed-to-find-generatedappglidemodule)
66+
* [Contributors ✨](#contributors-)
67+
* [Credits](#credits)
68+
<!-- TOC -->
6469

6570
## Features ✨
6671

@@ -175,13 +180,13 @@ consider removing relevant permission in your apps, more specifically:
175180

176181
### iOS
177182

178-
1. Platform version has to be at least *9.0*.
183+
1. Platform version has to be at least *11.0*.
179184
Modify `ios/Podfile` and update accordingly.
180185
```ruby
181-
platform :ios, '9.0'
186+
platform :ios, '11.0'
182187
```
183-
2. Add the following content to `info.plist`.
184-
```plist
188+
2. Add the following content to `Info.plist`.
189+
```
185190
<key>NSAppTransportSecurity</key>
186191
<dict>
187192
<key>NSAllowsArbitraryLoads</key>
@@ -202,7 +207,7 @@ consider removing relevant permission in your apps, more specifically:
202207
Use XCode to open `macos/Runner.xcworkspace` .
203208
3. ![step 1](https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67v4yk4j30qy0b50u0.jpg)
204209
4. ![step 2](https://tva1.sinaimg.cn/large/007S8ZIlgy1ghw67vd3f2j30jv04zgm5.jpg)
205-
5. Follow the iOS instructions and modify `info.plist` accordingly.
210+
5. Follow the iOS instructions and modify `Info.plist` accordingly.
206211

207212
## Usage 📖
208213

@@ -463,7 +468,7 @@ This project follows the
463468
[all-contributors](https://github.com/all-contributors/all-contributors) specification.
464469
Contributions of any kind welcomed!!
465470

466-
## Acknowledgement
471+
## Credits
467472

468473
> Every aspect of IntelliJ IDEA has been designed to maximize developer productivity.
469474
Together, intelligent coding assistance and ergonomic design make development not only productive but also enjoyable.

guides/migration_guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ This document gathered all breaking changes and migrations requirement between m
1818

1919
### Summary
2020

21-
Delegates extending `AssetPickerBuilderDelegate` that implements `selectAsset` should add the `index` argument to its signature.
21+
Delegates extending `AssetPickerBuilderDelegate` that implements `selectAsset`
22+
should add the `index` argument to its signature.
2223

2324
### Details
2425

0 commit comments

Comments
 (0)