showPhotos method

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

Implementation

@override
void showPhotos(BuildContext context, AppModel app,
    List<MemberMediumModel> media, int initialPage) {
  var photos = media
      .where((memberMedium) => memberMedium.mediumType == MediumType.photo)
      .toList();
  //title: "Photos",
  //
  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: MemberMediumSlideImageProvider(
              ListHelper.getMemberMediumModelList(photos)),
          initialPage: initialPage));
}