diff --git a/lib/services/sync_service.dart b/lib/services/sync_service.dart index 241af953b2eaf6d5c195d2c24bc8f47a39913412..ec14731e5c133f2d813ee55fd411a06237361bd6 100644 --- a/lib/services/sync_service.dart +++ b/lib/services/sync_service.dart @@ -234,6 +234,8 @@ class SyncService { final uploadedFile = await _uploader.encryptAndUploadFile(file); await _db.update(uploadedFile); } + Bus.instance + .fire(CollectionUpdatedEvent(collectionID: file.collectionID)); Bus.instance.fire(PhotoUploadEvent( completed: i + 1, total: filesToBeUploaded.length)); } catch (e) { diff --git a/lib/ui/collections_gallery_widget.dart b/lib/ui/collections_gallery_widget.dart index 3c4c1296ec0b27ad66726c18750f017840a051b6..4e6e14c6c3494c1d26d1af65cbc3a4bb5809b3f7 100644 --- a/lib/ui/collections_gallery_widget.dart +++ b/lib/ui/collections_gallery_widget.dart @@ -86,7 +86,7 @@ class _CollectionsGalleryWidgetState extends State { ), ), Divider(height: 12), - SectionTitle("Collections"), + SectionTitle("Saved Collections"), Padding(padding: EdgeInsets.all(6)), GridView.builder( shrinkWrap: true, @@ -199,7 +199,7 @@ class _CollectionsGalleryWidgetState extends State { List collections, int index) { if (index == collections.length) { return Container( - padding: EdgeInsets.fromLTRB(28, 0, 28, 56), + padding: EdgeInsets.fromLTRB(28, 12, 28, 46), child: OutlineButton( child: Icon( Icons.add,