Browse Source

update readme example

Caijinglong 6 years ago
parent
commit
e95f713e28
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      README.md

+ 2
- 2
README.md View File

23
 
23
 
24
 ## use
24
 ## use
25
 ```dart
25
 ```dart
26
-void _pickImage() async{
27
-  void _pickImage() async {
26
+
27
+  void _pickImage(BuildContext context) async {
28
     List<ImageEntity> imgList = await PhotoPicker.pickImage(
28
     List<ImageEntity> imgList = await PhotoPicker.pickImage(
29
       context: context, // BuildContext requied
29
       context: context, // BuildContext requied
30
 
30