showPhotosPublic method

  1. @override
void showPhotosPublic(
  1. BuildContext context,
  2. AppModel app,
  3. List<PublicMediumModel> media,
  4. int initialPage,
)
override

Implementation

@override
void showPhotosPublic(BuildContext context, AppModel app,
    List<PublicMediumModel> media, int initialPage) {
  var photos = media
      .where(
          (memberMedium) => memberMedium.mediumType == PublicMediumType.photo)
      .toList();

  openFlexibleDialog(app, context, '${app.documentID}/_showphotosplatform',
      includeHeading: true,
      title: "Photos",
      buttons: [
        dialogButton(app, context,
            label: 'Close', onPressed: () => Navigator.of(context).pop()),
      ],
      widthFraction: .9,
      child: AlbumSlider(
          height: fullFullScreenHeight(context) * .7,
          app: app,
          slideImageProvider: PublicMediumSlideImageProvider(
              ListHelper.getPublicMediumModelList(photos)),
          initialPage: initialPage));
}