mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-09 02:36:31 +01:00
Align icon in detail pane
This commit is contained in:
parent
afaea7a337
commit
bbe7d20e31
1 changed files with 18 additions and 9 deletions
|
@ -196,28 +196,37 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
|
||||||
if (widget.file.metadata?.imageWidth != null &&
|
if (widget.file.metadata?.imageWidth != null &&
|
||||||
widget.file.metadata?.imageHeight != null)
|
widget.file.metadata?.imageHeight != null)
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(
|
leading: Container(
|
||||||
|
height: double.infinity,
|
||||||
|
child: Icon(
|
||||||
Icons.aspect_ratio,
|
Icons.aspect_ratio,
|
||||||
color: AppTheme.getSecondaryTextColor(context),
|
color: AppTheme.getSecondaryTextColor(context),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
"${widget.file.metadata!.imageWidth} x ${widget.file.metadata!.imageHeight}"),
|
"${widget.file.metadata!.imageWidth} x ${widget.file.metadata!.imageHeight}"),
|
||||||
subtitle: Text(sizeSubStr),
|
subtitle: Text(sizeSubStr),
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(
|
leading: Container(
|
||||||
|
height: double.infinity,
|
||||||
|
child: Icon(
|
||||||
Icons.aspect_ratio,
|
Icons.aspect_ratio,
|
||||||
color: AppTheme.getSecondaryTextColor(context),
|
color: AppTheme.getSecondaryTextColor(context),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
title: Text(_byteSizeToString(widget.file.contentLength ?? 0)),
|
title: Text(_byteSizeToString(widget.file.contentLength ?? 0)),
|
||||||
),
|
),
|
||||||
if (_model != null)
|
if (_model != null)
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: Icon(
|
leading: Container(
|
||||||
|
height: double.infinity,
|
||||||
|
child: Icon(
|
||||||
Icons.camera_outlined,
|
Icons.camera_outlined,
|
||||||
color: AppTheme.getSecondaryTextColor(context),
|
color: AppTheme.getSecondaryTextColor(context),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
title: Text(_model!),
|
title: Text(_model!),
|
||||||
subtitle: cameraSubStr.isNotEmpty ? Text(cameraSubStr) : null,
|
subtitle: cameraSubStr.isNotEmpty ? Text(cameraSubStr) : null,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue