Minor layout change for better looking UI

This commit is contained in:
ashilkn 2023-05-04 12:10:46 +05:30
parent 922df0a98a
commit 4bb9ded136
2 changed files with 8 additions and 8 deletions

View file

@ -91,13 +91,11 @@ class _StatusBarWidgetState extends State<StatusBarWidget> {
: const SyncStatusWidget()
: const Text("ente", style: brandStyleMedium),
),
AnimatedOpacity(
opacity: _showErrorBanner ? 1 : 0,
duration: const Duration(milliseconds: 200),
child: const Divider(
height: 8,
),
),
_showErrorBanner
? const Divider(
height: 8,
)
: const SizedBox.shrink(),
_showErrorBanner
? HeaderErrorWidget(error: _syncError)
: const SizedBox.shrink(),

View file

@ -279,7 +279,9 @@ class _ZoomableImageState extends State<ZoomableImage>
(h != widget.photo.height || w != widget.photo.width)) {
_logger.info('Updating aspect ratio for ${widget.photo} to $h:$w');
await FileMagicService.instance.updatePublicMagicMetadata(
[widget.photo], {publicMagicKeyHeight: h, publicMagicKeyWidth: w});
[widget.photo],
{publicMagicKeyHeight: h, publicMagicKeyWidth: w},
);
}
}
}