|
@@ -1,9 +1,35 @@
|
1
|
1
|
# photo
|
2
|
2
|
|
3
|
|
-A new flutter package project.
|
|
3
|
+## 内测中
|
4
|
4
|
|
5
|
|
-## Getting Started
|
|
5
|
+install
|
|
6
|
+```yaml
|
|
7
|
+dependencies:
|
6
|
8
|
|
7
|
|
-For help getting started with Flutter, view our online [documentation](https://flutter.io/).
|
|
9
|
+ photo:
|
|
10
|
+ git: https://github.com/CaiJingLong/flutter_photo
|
|
11
|
+ ref: 5affef481c63a314333b40b4f26e1dc689c15c00 # 这里的ref看情况修改也可
|
|
12
|
+```
|
8
|
13
|
|
9
|
|
-For help on editing package code, view the [documentation](https://flutter.io/developing-packages/).
|
|
14
|
+import
|
|
15
|
+```dart
|
|
16
|
+import 'package:photo/photo.dart';
|
|
17
|
+import 'package:photo_manager/photo_manager.dart';
|
|
18
|
+```
|
|
19
|
+
|
|
20
|
+调用
|
|
21
|
+```dart
|
|
22
|
+void _pickImage() async{
|
|
23
|
+ List<ImageEntity> imgList = await PhotoPicker.pickImage(
|
|
24
|
+ context: context,
|
|
25
|
+ themeColor: Colors.green,
|
|
26
|
+ padding: 5.0,
|
|
27
|
+ dividerColor: Colors.deepOrange,
|
|
28
|
+ disableColor: Colors.grey.shade300,
|
|
29
|
+ itemRadio: 0.88,
|
|
30
|
+ );
|
|
31
|
+
|
|
32
|
+ print(imgList);
|
|
33
|
+ }
|
|
34
|
+
|
|
35
|
+```
|