Caijinglong 6 years ago
parent
commit
f7f7b628b8
4 changed files with 16 additions and 11 deletions
  1. 7
    0
      CHANGELOG.md
  2. 6
    6
      README.md
  3. 1
    1
      pubspec.lock
  4. 2
    4
      pubspec.yaml

+ 7
- 0
CHANGELOG.md View File

1
+# CHANGELOG
2
+
3
+## [0.0.4] fix #1
4
+
5
+fix request other permission will crash bug
6
+
1
 ## [0.0.3] add the thumb size to option
7
 ## [0.0.3] add the thumb size to option
2
 
8
 
3
 add a params for pick image , thumb size
9
 add a params for pick image , thumb size
4
 
10
 
5
 ## [0.0.2] fix bug
11
 ## [0.0.2] fix bug
12
+
6
 preview sure button bug
13
 preview sure button bug
7
 preview bottom safeArea
14
 preview bottom safeArea
8
 
15
 

+ 6
- 6
README.md View File

6
 if you want to build custom ui, you just need api to make custom ui. to use [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager)
6
 if you want to build custom ui, you just need api to make custom ui. to use [photo_manager](https://github.com/CaiJingLong/flutter_photo_manager)
7
 
7
 
8
 ## screenshot
8
 ## screenshot
9
+
9
 ![image](https://github.com/CaiJingLong/some_asset/blob/master/image_picker1.gif)
10
 ![image](https://github.com/CaiJingLong/some_asset/blob/master/image_picker1.gif)
10
 
11
 
11
 ## install
12
 ## install
12
 
13
 
13
 ```yaml
14
 ```yaml
14
 dependencies:
15
 dependencies:
15
-  photo: ^0.0.3
16
+  photo: ^0.0.4
16
 ```
17
 ```
17
 
18
 
18
 ## import
19
 ## import
20
+
19
 ```dart
21
 ```dart
20
 import 'package:photo/photo.dart';
22
 import 'package:photo/photo.dart';
21
 import 'package:photo_manager/photo_manager.dart';
23
 import 'package:photo_manager/photo_manager.dart';
22
 ```
24
 ```
23
 
25
 
24
 ## use
26
 ## use
25
-```dart
26
 
27
 
28
+```dart
27
   void _pickImage(BuildContext context) async {
29
   void _pickImage(BuildContext context) async {
28
     List<ImageEntity> imgList = await PhotoPicker.pickImage(
30
     List<ImageEntity> imgList = await PhotoPicker.pickImage(
29
       context: context, // BuildContext requied
31
       context: context, // BuildContext requied
31
       /// The following are optional parameters.
33
       /// The following are optional parameters.
32
       themeColor: Colors.green, // the title color and bottom color
34
       themeColor: Colors.green, // the title color and bottom color
33
       padding: 5.0, // item padding
35
       padding: 5.0, // item padding
34
-      dividerColor: Colors.deepOrange, // divider color 
36
+      dividerColor: Colors.deepOrange, // divider color
35
       disableColor: Colors.grey.shade300, // the check box disable color
37
       disableColor: Colors.grey.shade300, // the check box disable color
36
       itemRadio: 0.88, // the content item radio
38
       itemRadio: 0.88, // the content item radio
37
       maxSelected: 8, // max picker image count
39
       maxSelected: 8, // max picker image count
45
       print(e.id);
47
       print(e.id);
46
     });
48
     });
47
   }
49
   }
48
-
49
 ```
50
 ```
50
 
51
 
51
-
52
 ## about android
52
 ## about android
53
 
53
 
54
 ### glide
54
 ### glide
76
 
76
 
77
 if you use the proguard
77
 if you use the proguard
78
 
78
 
79
-see the [github](https://github.com/bumptech/glide#proguard)
79
+see the [github](https://github.com/bumptech/glide#proguard)

+ 1
- 1
pubspec.lock View File

213
       name: photo_manager
213
       name: photo_manager
214
       url: "https://pub.flutter-io.cn"
214
       url: "https://pub.flutter-io.cn"
215
     source: hosted
215
     source: hosted
216
-    version: "0.0.2"
216
+    version: "0.0.3"
217
   plugin:
217
   plugin:
218
     dependency: transitive
218
     dependency: transitive
219
     description:
219
     description:

+ 2
- 4
pubspec.yaml View File

1
 name: photo
1
 name: photo
2
 description: image picker, multi picker,use flutter as ui, if you want to build custom ui,you just use photo_manager.
2
 description: image picker, multi picker,use flutter as ui, if you want to build custom ui,you just use photo_manager.
3
-version: 0.0.3
3
+version: 0.0.4
4
 author: caijinglong<cjl_spy@163.com>
4
 author: caijinglong<cjl_spy@163.com>
5
 homepage: https://github.com/CaiJingLong/flutter_photo
5
 homepage: https://github.com/CaiJingLong/flutter_photo
6
 
6
 
11
   flutter:
11
   flutter:
12
     sdk: flutter
12
     sdk: flutter
13
 
13
 
14
-  photo_manager: ^0.0.2
14
+  photo_manager: ^0.0.3
15
 #  photo_manager:
15
 #  photo_manager:
16
 #    git:
16
 #    git:
17
 #      url: https://github.com/CaiJingLong/flutter_photo_manager.git
17
 #      url: https://github.com/CaiJingLong/flutter_photo_manager.git
28
 
28
 
29
 # The following section is specific to Flutter.
29
 # The following section is specific to Flutter.
30
 flutter:
30
 flutter:
31
-
32
   # To add assets to your package, add an assets section, like this:
31
   # To add assets to your package, add an assets section, like this:
33
   # assets:
32
   # assets:
34
   #  - images/a_dot_burr.jpeg
33
   #  - images/a_dot_burr.jpeg
39
   #
38
   #
40
   # An image asset can refer to one or more resolution-specific "variants", see
39
   # An image asset can refer to one or more resolution-specific "variants", see
41
   # https://flutter.io/assets-and-images/#resolution-aware.
40
   # https://flutter.io/assets-and-images/#resolution-aware.
42
-
43
   # To add custom fonts to your package, add a fonts section here,
41
   # To add custom fonts to your package, add a fonts section here,
44
   # in this "flutter" section. Each entry in this list should have a
42
   # in this "flutter" section. Each entry in this list should have a
45
   # "family" key with the font family name, and a "fonts" key with a
43
   # "family" key with the font family name, and a "fonts" key with a