Caijinglong il y a 5 ans
Parent
révision
1980dbd73e
1 fichiers modifiés avec 11 ajouts et 5 suppressions
  1. 11
    5
      lib/src/ui/page/photo_main_page.dart

+ 11
- 5
lib/src/ui/page/photo_main_page.dart Voir le fichier

@@ -26,7 +26,8 @@ class PhotoMainPage extends StatefulWidget {
26 26
   _PhotoMainPageState createState() => _PhotoMainPageState();
27 27
 }
28 28
 
29
-class _PhotoMainPageState extends State<PhotoMainPage> with SelectedProvider, GalleryListProvider {
29
+class _PhotoMainPageState extends State<PhotoMainPage>
30
+    with SelectedProvider, GalleryListProvider {
30 31
   Options get options => ConfigProvider.of(context).options;
31 32
 
32 33
   I18nProvider get i18nProvider => ConfigProvider.of(context).provider;
@@ -93,7 +94,9 @@ class _PhotoMainPageState extends State<PhotoMainPage> with SelectedProvider, Ga
93 94
                 splashColor: Colors.transparent,
94 95
                 child: Text(
95 96
                   i18nProvider.getSureText(options, selectedCount),
96
-                  style: selectedCount == 0 ? textStyle.copyWith(color: options.disableColor) : textStyle,
97
+                  style: selectedCount == 0
98
+                      ? textStyle.copyWith(color: options.disableColor)
99
+                      : textStyle,
97 100
                 ),
98 101
                 onPressed: selectedCount == 0 ? null : sure,
99 102
               ),
@@ -459,7 +462,8 @@ class __BottomWidgetState extends State<_BottomWidget> {
459 462
                   height: 44.0,
460 463
                   alignment: Alignment.center,
461 464
                   child: Text(
462
-                    i18nProvider.getPreviewText(options, widget.selectedProvider),
465
+                    i18nProvider.getPreviewText(
466
+                        options, widget.selectedProvider),
463 467
                     style: textStyle,
464 468
                   ),
465 469
                   padding: textPadding,
@@ -515,7 +519,8 @@ class ImageItem extends StatelessWidget {
515 519
       future: entity.thumbDataWithSize(size, size),
516 520
       builder: (BuildContext context, AsyncSnapshot<Uint8List> snapshot) {
517 521
         var futureData = snapshot.data;
518
-        if (snapshot.connectionState == ConnectionState.done && futureData != null) {
522
+        if (snapshot.connectionState == ConnectionState.done &&
523
+            futureData != null) {
519 524
           ImageLruCache.setData(entity, size, futureData);
520 525
           return _buildImageItem(context, futureData);
521 526
         }
@@ -542,7 +547,8 @@ class ImageItem extends StatelessWidget {
542 547
       future: entity.videoDuration,
543 548
       builder: (ctx, snapshot) {
544 549
         if (snapshot.hasData && snapshot != null) {
545
-          var buildBadge = badgeDelegate?.buildBadge(context, entity.type, snapshot.data);
550
+          var buildBadge =
551
+              badgeDelegate?.buildBadge(context, entity.type, snapshot.data);
546 552
           if (buildBadge == null) {
547 553
             return Container();
548 554
           } else {