Caijinglong 6 years ago
parent
commit
de797d6e4e
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      example/lib/main.dart

+ 7
- 4
example/lib/main.dart View File

40
       disableColor: Colors.grey.shade300, // the check box disable color
40
       disableColor: Colors.grey.shade300, // the check box disable color
41
       itemRadio: 0.88, // the content item radio
41
       itemRadio: 0.88, // the content item radio
42
       maxSelected: 8, // max picker image count
42
       maxSelected: 8, // max picker image count
43
-      provider: I18nProvider.chinese, // i18n provider ,default is chinese. , you can custom I18nProvider or use ENProvider()
44
-      rowCount: 5,  // item row count
43
+      provider: I18nProvider
44
+          .chinese, // i18n provider ,default is chinese. , you can custom I18nProvider or use ENProvider()
45
+      rowCount: 5, // item row count
45
       textColor: Colors.white, // text color
46
       textColor: Colors.white, // text color
46
       thumbSize: 150, // preview thumb size , default is 64
47
       thumbSize: 150, // preview thumb size , default is 64
47
-      sortDelegate: SortDelegate.common, // default is common ,or you make custom delegate to sort your gallery
48
-      checkBoxBuilderDelegate: DefaultCheckBoxBuilderDelegate(), // default is DefaultCheckBoxBuilderDelegate ,or you make custom delegate to create checkbox
48
+      sortDelegate: SortDelegate
49
+          .common, // default is common ,or you make custom delegate to sort your gallery
50
+      checkBoxBuilderDelegate:
51
+          DefaultCheckBoxBuilderDelegate(), // default is DefaultCheckBoxBuilderDelegate ,or you make custom delegate to create checkbox
49
     );
52
     );
50
 
53
 
51
     if (imgList == null) {
54
     if (imgList == null) {