Browse Source

fix all gallery name

Caijinglong 5 years ago
parent
commit
b282fc27e6

+ 2
- 1
example/lib/main.dart View File

@@ -48,7 +48,8 @@ class _MyHomePageState extends State<MyHomePage> with LoadingDelegate {
48 48
       // the content item radio
49 49
       maxSelected: 8,
50 50
       // max picker image count
51
-      provider: I18nProvider.chinese,
51
+      provider: I18nProvider.english,
52
+      // provider: I18nProvider.chinese,
52 53
       // i18n provider ,default is chinese. , you can custom I18nProvider or use ENProvider()
53 54
       rowCount: 3,
54 55
       // item row count

+ 1
- 1
lib/src/provider/i18n_provider.dart View File

@@ -102,7 +102,7 @@ class ENProvider extends I18nProvider {
102 102
 
103 103
   @override
104 104
   String getAllGalleryText(Options options) {
105
-    return "all images";
105
+    return "all";
106 106
   }
107 107
 
108 108
   @override

+ 1
- 0
lib/src/ui/page/photo_main_page.dart View File

@@ -58,6 +58,7 @@ class _PhotoMainPageState extends State<PhotoMainPage>
58 58
   @override
59 59
   void initState() {
60 60
     super.initState();
61
+    AssetPathEntity.all.name = i18nProvider.getAllGalleryText(options);
61 62
     _refreshList();
62 63
     scaffoldKey = GlobalKey();
63 64
     scrollController = ScrollController();