CollectionPage: Pass galleyAppBarType in the constructor

This commit is contained in:
Neeraj Gupta 2021-09-10 23:12:25 +05:30
parent a9de0f9bb7
commit 4156b37d25

View file

@ -14,9 +14,13 @@ import 'gallery_app_bar_widget.dart';
class CollectionPage extends StatelessWidget {
final CollectionWithThumbnail c;
final String tagPrefix;
final GalleryAppBarType appBarType;
final _selectedFiles = SelectedFiles();
CollectionPage(this.c, {this.tagPrefix = "collection", Key key})
CollectionPage(this.c,
{this.tagPrefix = "collection",
this.appBarType = GalleryAppBarType.collection,
Key key})
: super(key: key);
@override
@ -44,7 +48,7 @@ class CollectionPage extends StatelessWidget {
Container(
height: Platform.isAndroid ? 80 : 100,
child: GalleryAppBarWidget(
GalleryAppBarType.collection,
appBarType,
c.collection.name,
_selectedFiles,
collection: c.collection,