From afe4cdf607f52c922efe1ed97da9879afbf37ddb Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Wed, 15 Sep 2021 19:14:37 +0800 Subject: [PATCH] Tweak style --- lib/widget/share_album_dialog.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/widget/share_album_dialog.dart b/lib/widget/share_album_dialog.dart index 4bb1b5a7..1808a166 100644 --- a/lib/widget/share_album_dialog.dart +++ b/lib/widget/share_album_dialog.dart @@ -101,10 +101,13 @@ class _ShareAlbumDialogState extends State { _processingSharee.any((element) => element == sharee.shareWith); final Widget trailing; if (isProcessing) { - trailing = const SizedBox( - width: 24, - height: 24, - child: CircularProgressIndicator(), + trailing = const Padding( + padding: EdgeInsetsDirectional.only(end: 12), + child: SizedBox( + width: 24, + height: 24, + child: CircularProgressIndicator(), + ), ); } else { trailing = Checkbox( @@ -156,6 +159,7 @@ class _ShareAlbumDialogState extends State { } else { // remove share try { + await Future.delayed(const Duration(seconds: 3)); await shareRepo.delete(widget.account, share); _overrideSharee[sharee.shareWith] = null; } catch (e, stackTrace) {