Skip to content

Commit f82b3cd

Browse files
committed
🔖 ## 1.7.0-dev.1.
1 parent d68b7b3 commit f82b3cd

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.7.0-dev.1]
2+
3+
* Add fully theme support.
4+
* Add delay for the first init method to prevent stuck in page routing. Fix #13 .
5+
* Update widgets style on iOS. Fix #14 .
6+
* Fix state of the example not updated after the result was returned without input method activated.
7+
18
## [1.6.0]
29

310
* Support HEIC/HEIF image type.

README-ZH.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Language: [English](README.md) | 中文简体
3939
- [ ] 单资源模式
4040
- [x] 国际化支持
4141
- [x] 自定义文本支持
42-
- [ ] 完整的自定义主题
43-
- [ ] Flutter For Web 支持
42+
- [x] 完整的自定义主题
43+
- [x] 支持 MacOS
4444

4545
## 截图 📸
4646

@@ -99,6 +99,7 @@ import 'package:wechat_assets_picker/wechat_assets_picker.dart';
9999
| requestType | `RequestType` | 选择器选择资源的类型 | `RequestType.image` |
100100
| selectedAssets | `List<AssetEntity>` | 已选的资源。确保不重复选择。如果你允许重复选择,请将其置空。 | `null` |
101101
| themeColor | `Color` | 选择器的主题色 | `Color(0xff00bc56)` |
102+
| pickerTheme | `ThemeData` | 选择器的主题提供,包括查看器 | `null` |
102103
| textDelegate | `TextDelegate` | 选择器的文本代理构建,用于自定义文本 | `DefaultTextDelegate()` |
103104
| routeCurve | `Curve` | 选择构造路由动画的曲线 | `Curves.easeIn` |
104105
| routeDuration | `Duration` | 选择构造路由动画的时间 | `const Duration(milliseconds: 500)` |
@@ -131,6 +132,7 @@ final List<AssetEntity> result = await AssetPicker.pickAssets(
131132
requestType: RequestType.image,
132133
selectedAssets: assets,
133134
themeColor: Colors.cyan,
135+
pickerTheme: ThemeData.dark(), // 不能跟`themeColor`同时设置
134136
textDelegate: DefaultTextDelegate(),
135137
routeCurve: Curves.easeIn,
136138
routeDuration: const Duration(milliseconds: 500),
@@ -151,6 +153,7 @@ AssetPicker.pickAssets(
151153
requestType: RequestType.image,
152154
selectedAssets: assets,
153155
themeColor: Colors.cyan,
156+
pickerTheme: ThemeData.dark(), // 不能跟`themeColor`同时设置
154157
textDelegate: DefaultTextDelegate(),
155158
routeCurve: Curves.easeIn,
156159
routeDuration: const Duration(milliseconds: 500),

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ An **assets picker** which looks like the one in WeChat, based on `photo_manager
3939
- [ ] Single asset mode
4040
- [x] i18n support
4141
- [x] Custom text delegate support
42-
- [ ] Custom theming entirely
43-
- [ ] Flutter For Web support
42+
- [x] Custom theme entirely
43+
- [x] MacOS support
4444

4545
## Screenshots 📸
4646

@@ -97,6 +97,7 @@ Add following content to `info.plist`.
9797
| requestType | `RequestType` | Request type for picker. | RequestType.image |
9898
| selectedAssets | `List<AssetEntity>` | Selected assets. Prevent duplicate selection. If you don't need to prevent duplicate selection, just don't pass it. | `null` |
9999
| themeColor | `Color` | Main theme color for the picker | `Color(0xff00bc56)` |
100+
| pickerTheme | `ThemeData` | Theme data provider for the picker and the viewer. | `null` |
100101
| textDelegate | `TextDelegate` | Text delegate for the picker, for customize the texts. | `DefaultTextDelegate()` |
101102
| routeCurve | `Curve` | The curve which the picker use to build page route transition. | `Curves.easeIn` |
102103
| routeDuration | `Duration` | The duration which the picker use to build page route transition. | `const Duration(milliseconds: 500)` |
@@ -128,6 +129,7 @@ final List<AssetEntity> result = await AssetPicker.pickAssets(
128129
requestType: RequestType.image,
129130
selectedAssets: assets,
130131
themeColor: Colors.cyan,
132+
pickerTheme: ThemeData.dark(), // This cannot be set when the `themeColor` was provided.
131133
textDelegate: DefaultTextDelegate(),
132134
routeCurve: Curves.easeIn,
133135
routeDuration: const Duration(milliseconds: 500),
@@ -148,6 +150,7 @@ AssetPicker.pickAssets(
148150
requestType: RequestType.image,
149151
selectedAssets: assets,
150152
themeColor: Colors.cyan,
153+
pickerTheme: ThemeData.dark(), // This cannot be set when the `themeColor` was provided.
151154
textDelegate: DefaultTextDelegate(),
152155
routeCurve: Curves.easeIn,
153156
routeDuration: const Duration(milliseconds: 500),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: wechat_assets_picker
22
description: An assets picker in pure dart which looks like the one in WeChat, support multi asset pick from device.
3-
version: 1.6.0
3+
version: 1.7.0-dev.1
44
homepage: https://github.com/fluttercandies/flutter_wechat_assets_picker
55

66
environment:

0 commit comments

Comments
 (0)