Browse Source

make spacing equal between elements in row (#1685)

Vishnu Mohandas 1 năm trước cách đây
mục cha
commit
172ec5eeb0

+ 2 - 2
lib/ui/viewer/file_details/file_properties_item_widget.dart

@@ -51,13 +51,13 @@ class _FilePropertiesItemWidgetState extends State<FilePropertiesItemWidget> {
     final StringBuffer dimString = StringBuffer();
     final StringBuffer dimString = StringBuffer();
     if (widget.exifData["resolution"] != null &&
     if (widget.exifData["resolution"] != null &&
         widget.exifData["megaPixels"] != null) {
         widget.exifData["megaPixels"] != null) {
-      dimString.write('${widget.exifData["megaPixels"]}MP ');
+      dimString.write('${widget.exifData["megaPixels"]}MP   ');
       dimString.write('${widget.exifData["resolution"]}');
       dimString.write('${widget.exifData["resolution"]}');
     } else if (widget.file.hasDimensions) {
     } else if (widget.file.hasDimensions) {
       final double megaPixels =
       final double megaPixels =
           (widget.file.width * widget.file.height) / 1000000;
           (widget.file.width * widget.file.height) / 1000000;
       final double roundedMegaPixels = (megaPixels * 10).round() / 10.0;
       final double roundedMegaPixels = (megaPixels * 10).round() / 10.0;
-      dimString.write('${roundedMegaPixels.toStringAsFixed(1)}MP ');
+      dimString.write('${roundedMegaPixels.toStringAsFixed(1)}MP   ');
       dimString.write('${widget.file.width} x ${widget.file.height}');
       dimString.write('${widget.file.width} x ${widget.file.height}');
     }
     }
     final subSectionWidgets = <Widget>[];
     final subSectionWidgets = <Widget>[];