Incoming Collection: Specify gallery as incoming_collection
* Hide add selected files to another collection button. * Add folks to album & remove/delete from album is also not visible now
This commit is contained in:
parent
4156b37d25
commit
a0cbf3141e
2 changed files with 10 additions and 2 deletions
|
@ -23,6 +23,7 @@ enum GalleryAppBarType {
|
|||
shared_collection,
|
||||
collection,
|
||||
search_results,
|
||||
incoming_collection,
|
||||
}
|
||||
|
||||
class GalleryAppBarWidget extends StatefulWidget {
|
||||
|
@ -165,7 +166,9 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
|||
|
||||
List<Widget> _getActions(BuildContext context) {
|
||||
List<Widget> actions = <Widget>[];
|
||||
if (Configuration.instance.hasConfiguredAccount()) {
|
||||
// skip add button for incoming collection till this feature is implemented
|
||||
if (Configuration.instance.hasConfiguredAccount() &&
|
||||
widget.type != GalleryAppBarType.incoming_collection) {
|
||||
actions.add(IconButton(
|
||||
icon:
|
||||
Icon(Platform.isAndroid ? Icons.add_outlined : CupertinoIcons.add),
|
||||
|
|
|
@ -14,6 +14,7 @@ import 'package:photos/models/collection_items.dart';
|
|||
import 'package:photos/services/collections_service.dart';
|
||||
import 'package:photos/ui/collection_page.dart';
|
||||
import 'package:photos/ui/collections_gallery_widget.dart';
|
||||
import 'package:photos/ui/gallery_app_bar_widget.dart';
|
||||
import 'package:photos/ui/loading_widget.dart';
|
||||
import 'package:photos/ui/thumbnail_widget.dart';
|
||||
import 'package:photos/utils/navigation_util.dart';
|
||||
|
@ -418,7 +419,11 @@ class IncomingCollectionItem extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
onTap: () {
|
||||
routeToPage(context, CollectionPage(c, tagPrefix: "shared_collection"));
|
||||
routeToPage(
|
||||
context,
|
||||
CollectionPage(c,
|
||||
appBarType: GalleryAppBarType.incoming_collection,
|
||||
tagPrefix: "shared_collection"));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue