@@ -249,8 +249,10 @@ class AssetPicker extends StatelessWidget {
249
249
/// 仍然存在,使得返回的数据为空。
250
250
final Uint8List thumbData = pathEntityList[pathEntity];
251
251
if (thumbData != null ) {
252
- return Image .memory (pathEntityList[pathEntity],
253
- fit: BoxFit .cover);
252
+ return Image .memory (
253
+ pathEntityList[pathEntity],
254
+ fit: BoxFit .cover,
255
+ );
254
256
} else {
255
257
return Container (color: Colors .white12);
256
258
}
@@ -420,7 +422,8 @@ class AssetPicker extends StatelessWidget {
420
422
borderRadius: BorderRadius .circular (3.0 )),
421
423
child: Text (
422
424
provider.isSelectedNotEmpty
423
- ? '${Constants .textDelegate .confirm }(${provider .selectedAssets .length }/${provider .maxAssets })'
425
+ ? '${Constants .textDelegate .confirm }'
426
+ '(${provider .selectedAssets .length }/${provider .maxAssets })'
424
427
: Constants .textDelegate.confirm,
425
428
style: TextStyle (
426
429
color: provider.isSelectedNotEmpty
@@ -721,7 +724,8 @@ class AssetPicker extends StatelessWidget {
721
724
(BuildContext _, List <AssetEntity > selectedAssets, Widget __) {
722
725
return Text (
723
726
isSelectedNotEmpty
724
- ? '${Constants .textDelegate .preview }(${provider .selectedAssets .length })'
727
+ ? '${Constants .textDelegate .preview }'
728
+ '(${provider .selectedAssets .length })'
725
729
: Constants .textDelegate.preview,
726
730
style: TextStyle (
727
731
color: isSelectedNotEmpty ? null : Colors .grey[600 ],
0 commit comments