Tweak style

This commit is contained in:
Ming Ming 2021-09-15 19:14:37 +08:00
parent 5bb781160d
commit afe4cdf607

View file

@ -101,10 +101,13 @@ class _ShareAlbumDialogState extends State<ShareAlbumDialog> {
_processingSharee.any((element) => element == sharee.shareWith); _processingSharee.any((element) => element == sharee.shareWith);
final Widget trailing; final Widget trailing;
if (isProcessing) { if (isProcessing) {
trailing = const SizedBox( trailing = const Padding(
padding: EdgeInsetsDirectional.only(end: 12),
child: SizedBox(
width: 24, width: 24,
height: 24, height: 24,
child: CircularProgressIndicator(), child: CircularProgressIndicator(),
),
); );
} else { } else {
trailing = Checkbox( trailing = Checkbox(
@ -156,6 +159,7 @@ class _ShareAlbumDialogState extends State<ShareAlbumDialog> {
} else { } else {
// remove share // remove share
try { try {
await Future.delayed(const Duration(seconds: 3));
await shareRepo.delete(widget.account, share); await shareRepo.delete(widget.account, share);
_overrideSharee[sharee.shareWith] = null; _overrideSharee[sharee.shareWith] = null;
} catch (e, stackTrace) { } catch (e, stackTrace) {