|
@@ -28,7 +28,8 @@ class PhotoMainPage extends StatefulWidget {
|
28
|
28
|
_PhotoMainPageState createState() => _PhotoMainPageState();
|
29
|
29
|
}
|
30
|
30
|
|
31
|
|
-class _PhotoMainPageState extends State<PhotoMainPage> with SelectedProvider, GalleryListProvider {
|
|
31
|
+class _PhotoMainPageState extends State<PhotoMainPage>
|
|
32
|
+ with SelectedProvider, GalleryListProvider {
|
32
|
33
|
Options get options => widget.options;
|
33
|
34
|
|
34
|
35
|
I18nProvider get i18nProvider => ConfigProvider.of(context).provider;
|
|
@@ -95,7 +96,9 @@ class _PhotoMainPageState extends State<PhotoMainPage> with SelectedProvider, Ga
|
95
|
96
|
splashColor: Colors.transparent,
|
96
|
97
|
child: Text(
|
97
|
98
|
i18nProvider.getSureText(options, selectedCount),
|
98
|
|
- style: selectedCount == 0 ? textStyle.copyWith(color: options.disableColor) : textStyle,
|
|
99
|
+ style: selectedCount == 0
|
|
100
|
+ ? textStyle.copyWith(color: options.disableColor)
|
|
101
|
+ : textStyle,
|
99
|
102
|
),
|
100
|
103
|
onPressed: selectedCount == 0 ? null : sure,
|
101
|
104
|
),
|
|
@@ -483,7 +486,8 @@ class __BottomWidgetState extends State<_BottomWidget> {
|
483
|
486
|
height: 44.0,
|
484
|
487
|
alignment: Alignment.center,
|
485
|
488
|
child: Text(
|
486
|
|
- i18nProvider.getPreviewText(options, widget.selectedProvider),
|
|
489
|
+ i18nProvider.getPreviewText(
|
|
490
|
+ options, widget.selectedProvider),
|
487
|
491
|
style: textStyle,
|
488
|
492
|
),
|
489
|
493
|
padding: textPadding,
|
|
@@ -539,7 +543,8 @@ class ImageItem extends StatelessWidget {
|
539
|
543
|
future: entity.thumbDataWithSize(size, size),
|
540
|
544
|
builder: (BuildContext context, AsyncSnapshot<Uint8List> snapshot) {
|
541
|
545
|
var futureData = snapshot.data;
|
542
|
|
- if (snapshot.connectionState == ConnectionState.done && futureData != null) {
|
|
546
|
+ if (snapshot.connectionState == ConnectionState.done &&
|
|
547
|
+ futureData != null) {
|
543
|
548
|
ImageLruCache.setData(entity, size, futureData);
|
544
|
549
|
return _buildImageItem(context, futureData);
|
545
|
550
|
}
|
|
@@ -566,7 +571,8 @@ class ImageItem extends StatelessWidget {
|
566
|
571
|
future: entity.videoDuration,
|
567
|
572
|
builder: (ctx, snapshot) {
|
568
|
573
|
if (snapshot.hasData && snapshot != null) {
|
569
|
|
- var buildBadge = badgeDelegate?.buildBadge(context, entity.type, snapshot.data);
|
|
574
|
+ var buildBadge =
|
|
575
|
+ badgeDelegate?.buildBadge(context, entity.type, snapshot.data);
|
570
|
576
|
if (buildBadge == null) {
|
571
|
577
|
return Container();
|
572
|
578
|
} else {
|