Fix lint issues

This commit is contained in:
Neeraj Gupta 2022-07-16 14:01:36 +05:30
parent f319e2f150
commit 0e37cea800
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -127,8 +127,9 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
children: [
showDimension
? Text(
"${_exifData["megaPixels"]}MP ${_exifData["resolution"]}"
" ")
"${_exifData["megaPixels"]}MP "
"${_exifData["resolution"]} ",
)
: const SizedBox.shrink(),
_getFileSize(),
(file.fileType == FileType.video) &&
@ -295,7 +296,7 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
exif["Image "
"ImageLength"];
if (imageWidth != null && imageLength != null) {
_exifData["resolution"] = '${imageWidth} x ${imageLength}';
_exifData["resolution"] = '$imageWidth x $imageLength';
_exifData['megaPixels'] =
((imageWidth.values.firstAsInt() * imageLength.values.firstAsInt()) /
1000000)
@ -322,7 +323,8 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
builder: (context, snapshot) {
if (snapshot.hasData) {
return Text(
(snapshot.data / (1024 * 1024)).toStringAsFixed(2) + " MB");
(snapshot.data / (1024 * 1024)).toStringAsFixed(2) + " MB",
);
} else {
return Center(
child: SizedBox.fromSize(