@@ -32,11 +32,13 @@ See the [Migration Guide][] to learn how to migrate between breaking changes.
32
32
* [ Flutter WeChat Camera Picker] ( #flutter-wechat-camera-picker )
33
33
* [ Features ✨] ( #features- )
34
34
* [ Screenshots 📸] ( #screenshots- )
35
+ * [ READ THIS FIRST ‼️] ( #read-this-first- )
35
36
* [ Preparing for use 🍭] ( #preparing-for-use- )
36
- * [ Version constraints ] ( #version-constraints )
37
+ * [ Versions compatibility ] ( #versions-compatibility )
37
38
* [ Setup] ( #setup )
38
39
* [ Android 13 (API 33) permissions] ( #android-13-api-33-permissions )
39
40
* [ Usage 📖] ( #usage- )
41
+ * [ Localizations] ( #localizations )
40
42
* [ Simple usage] ( #simple-usage )
41
43
* [ With configurations] ( #with-configurations )
42
44
* [ Using custom ` State ` s] ( #using-custom-states )
@@ -48,8 +50,11 @@ See the [Migration Guide][] to learn how to migrate between breaking changes.
48
50
49
51
## Features ✨
50
52
53
+ - ♿ Complete a11y support with _ TalkBack_ and _ VoiceOver_
51
54
- ♻️ Fully implementable with ` State ` s override
52
- - 💚 99% similar to WeChat style
55
+ - 🎏 Fully customizable theme based on ` ThemeData `
56
+ - 💚 Completely WeChat style (even more)
57
+ - ⚡️ Adjustable performance with different configurations
53
58
- 📷 Picture taking support
54
59
- 🎥 Video recording support
55
60
- ⏱ Duration limitation support
@@ -58,7 +63,6 @@ See the [Migration Guide][] to learn how to migrate between breaking changes.
58
63
- 🔍️ Scale with pinch support
59
64
- 💱 i18n support
60
65
- ⏪ RTL language support
61
- - 🎏 Fully customizable theme
62
66
- 🖾 Foreground custom widget builder support
63
67
- 🕹️ Intercept saving with custom process
64
68
@@ -68,19 +72,68 @@ See the [Migration Guide][] to learn how to migrate between breaking changes.
68
72
| -------------------------------------------------------------------------| -------------------------------------------------------------------------|
69
73
| ![ ] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6z1h7xj30u01t01kx.jpg ) | ![ ] ( https://tva1.sinaimg.cn/large/007S8ZIlgy1ggtt6zarvhj30u01t0x5f.jpg ) |
70
74
75
+ ## READ THIS FIRST ‼️
76
+
77
+ Be aware of below notices before you started anything:
78
+ - Due to understanding differences and the limitation of a single document,
79
+ documents will not cover all the contents.
80
+ If you find nothing related to your expected features and cannot understand about concepts,
81
+ run the example project and check every options first.
82
+ It has covered 90% of regular requests with the package.
83
+ - The package deeply integrates with the [ photo_manager] [ photo_manager pub ] plugin,
84
+ make sure you understand these two concepts as much as possible:
85
+ - Asset (photos/videos/audio) - [ ` AssetEntity ` ] ( https://pub.dev/documentation/photo_manager/latest/photo_manager/AssetEntity-class.html )
86
+ - Assets collection (albums/libraries) - [ ` AssetPathEntity ` ] ( https://pub.dev/documentation/photo_manager/latest/photo_manager/AssetPathEntity-class.html )
87
+
88
+ When you have questions about related APIs and behaviors,
89
+ check [ photo_manager's API docs] [ ] for more details.
90
+
91
+ Most usages are detailed covered by the [ example] ( example ) .
92
+ Please walk through the [ example] ( example ) carefully
93
+ before you have any questions.
94
+
71
95
## Preparing for use 🍭
72
96
73
- ### Version constraints
97
+ ### Versions compatibility
98
+
99
+ The package only guarantees to be working on ** the stable version of Flutter** .
100
+ We won't update it in real-time to align with other channels of Flutter.
74
101
75
102
Flutter SDK: ` >=2.8.0 ` .
76
103
104
+ If you got a ` resolve conflict ` error when running ` flutter pub get ` ,
105
+ please use ` dependency_overrides ` to fix it.
106
+
77
107
### Setup
78
108
109
+ Run ` flutter pub add wechat_camera_picker ` ,
110
+ or add ` wechat_camera_picker ` to ` pubspec.yaml ` dependencies manually.
111
+ ``` yaml
112
+ dependencies :
113
+ wechat_camera_picker : ^latest_version
114
+ ` ` `
115
+
116
+ The latest **stable** version is:
117
+ [](https://pub.dev/packages/wechat_camera_picker)
118
+
119
+ The latest **dev** version is:
120
+ [](https://pub.dev/packages/wechat_camera_picker)
121
+
122
+ Then import the package in your code:
123
+ ` ` ` dart
124
+ import 'package:wechat_camera_picker/wechat_camera_picker.dart';
125
+ ```
126
+
127
+ See also:
79
128
- [ wechat_assets_picker#preparing-for-use] ( https://github.com/fluttercandies/flutter_wechat_assets_picker#preparing-for-use- )
80
129
- [ camera#installation] ( https://pub.dev/packages/camera#installation )
81
130
82
131
#### Android 13 (API 33) permissions
83
132
133
+ When using the package, please upgrade
134
+ ` targetSdkVersion ` and ` compileSdkVersion ` to ` 33 ` .
135
+ Otherwise, no assets can be fetched on Android 13.
136
+
84
137
If you don't need to take photos or videos,
85
138
consider removing relevant permission in your apps, more specifically:
86
139
@@ -97,6 +150,22 @@ consider removing relevant permission in your apps, more specifically:
97
150
98
151
## Usage 📖
99
152
153
+ ### Localizations
154
+
155
+ When you're picking assets, the package will obtain the ` Locale? `
156
+ from your ` BuildContext ` , and return the corresponding text delegate
157
+ of the current language.
158
+ Make sure you have a valid ` Locale ` in your widget tree that can be accessed
159
+ from the ` BuildContext ` . ** Otherwise, the default Chinese delegate will be used.**
160
+
161
+ Embedded text delegates languages are:
162
+ * 简体中文 (default)
163
+ * English
164
+ * Tiếng Việt
165
+
166
+ If you want to use a custom/fixed text delegate, pass it through the
167
+ ` CameraPickerConfig.textDelegate ` .
168
+
100
169
### Simple usage
101
170
102
171
``` dart
0 commit comments