mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +01:00
Tweak style
This commit is contained in:
parent
5bb781160d
commit
afe4cdf607
1 changed files with 8 additions and 4 deletions
|
@ -101,10 +101,13 @@ class _ShareAlbumDialogState extends State<ShareAlbumDialog> {
|
|||
_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<ShareAlbumDialog> {
|
|||
} else {
|
||||
// remove share
|
||||
try {
|
||||
await Future.delayed(const Duration(seconds: 3));
|
||||
await shareRepo.delete(widget.account, share);
|
||||
_overrideSharee[sharee.shareWith] = null;
|
||||
} catch (e, stackTrace) {
|
||||
|
|
Loading…
Reference in a new issue