From 4bb9ded136e7306329d12517b9bfb4d648c1ec8a Mon Sep 17 00:00:00 2001 From: ashilkn Date: Thu, 4 May 2023 12:10:46 +0530 Subject: [PATCH] Minor layout change for better looking UI --- lib/ui/home/status_bar_widget.dart | 12 +++++------- lib/ui/viewer/file/zoomable_image.dart | 4 +++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ui/home/status_bar_widget.dart b/lib/ui/home/status_bar_widget.dart index 9b1b3a10a..93cbde102 100644 --- a/lib/ui/home/status_bar_widget.dart +++ b/lib/ui/home/status_bar_widget.dart @@ -91,13 +91,11 @@ class _StatusBarWidgetState extends State { : 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(), diff --git a/lib/ui/viewer/file/zoomable_image.dart b/lib/ui/viewer/file/zoomable_image.dart index 9087e0250..7ec646be7 100644 --- a/lib/ui/viewer/file/zoomable_image.dart +++ b/lib/ui/viewer/file/zoomable_image.dart @@ -279,7 +279,9 @@ class _ZoomableImageState extends State (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}, + ); } } }