Skip to content

Commit 1e7adbc

Browse files
committed
🎨 Update format.
1 parent 64f66bb commit 1e7adbc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/src/widget/asset_picker.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,10 @@ class AssetPicker extends StatelessWidget {
249249
/// 仍然存在,使得返回的数据为空。
250250
final Uint8List thumbData = pathEntityList[pathEntity];
251251
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+
);
254256
} else {
255257
return Container(color: Colors.white12);
256258
}
@@ -420,7 +422,8 @@ class AssetPicker extends StatelessWidget {
420422
borderRadius: BorderRadius.circular(3.0)),
421423
child: Text(
422424
provider.isSelectedNotEmpty
423-
? '${Constants.textDelegate.confirm}(${provider.selectedAssets.length}/${provider.maxAssets})'
425+
? '${Constants.textDelegate.confirm}'
426+
'(${provider.selectedAssets.length}/${provider.maxAssets})'
424427
: Constants.textDelegate.confirm,
425428
style: TextStyle(
426429
color: provider.isSelectedNotEmpty
@@ -721,7 +724,8 @@ class AssetPicker extends StatelessWidget {
721724
(BuildContext _, List<AssetEntity> selectedAssets, Widget __) {
722725
return Text(
723726
isSelectedNotEmpty
724-
? '${Constants.textDelegate.preview}(${provider.selectedAssets.length})'
727+
? '${Constants.textDelegate.preview}'
728+
'(${provider.selectedAssets.length})'
725729
: Constants.textDelegate.preview,
726730
style: TextStyle(
727731
color: isSelectedNotEmpty ? null : Colors.grey[600],

0 commit comments

Comments
 (0)