Merge pull request #71 from ayush221b/migrate/deprecated_code_full_screen

fix(sample_app): Migrated the deprecated widgets to v4 widgets
This commit is contained in:
Salvatore Giordano
2022-04-13 15:54:38 +02:00
committed by GitHub
@@ -181,10 +181,15 @@ class _ChannelMediaDisplayScreenState extends State<ChannelMediaDisplayScreen> {
builder: (context) => StreamChannel(
channel: channel,
child: StreamFullScreenMedia(
mediaAttachments:
media.map((e) => e.attachment).toList(),
mediaAttachmentPackages: media
.map(
(e) => StreamAttachmentPackage(
attachment: e.attachment,
message: e.message,
),
)
.toList(),
startIndex: position,
message: media[position].message,
userName: media[position].message.user!.name,
onShowMessage: widget.onShowMessage,
),