mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 10:58:50 +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);
|
_processingSharee.any((element) => element == sharee.shareWith);
|
||||||
final Widget trailing;
|
final Widget trailing;
|
||||||
if (isProcessing) {
|
if (isProcessing) {
|
||||||
trailing = const SizedBox(
|
trailing = const Padding(
|
||||||
width: 24,
|
padding: EdgeInsetsDirectional.only(end: 12),
|
||||||
height: 24,
|
child: SizedBox(
|
||||||
child: CircularProgressIndicator(),
|
width: 24,
|
||||||
|
height: 24,
|
||||||
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue