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:
@@ -181,10 +181,15 @@ class _ChannelMediaDisplayScreenState extends State<ChannelMediaDisplayScreen> {
|
|||||||
builder: (context) => StreamChannel(
|
builder: (context) => StreamChannel(
|
||||||
channel: channel,
|
channel: channel,
|
||||||
child: StreamFullScreenMedia(
|
child: StreamFullScreenMedia(
|
||||||
mediaAttachments:
|
mediaAttachmentPackages: media
|
||||||
media.map((e) => e.attachment).toList(),
|
.map(
|
||||||
|
(e) => StreamAttachmentPackage(
|
||||||
|
attachment: e.attachment,
|
||||||
|
message: e.message,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
startIndex: position,
|
startIndex: position,
|
||||||
message: media[position].message,
|
|
||||||
userName: media[position].message.user!.name,
|
userName: media[position].message.user!.name,
|
||||||
onShowMessage: widget.onShowMessage,
|
onShowMessage: widget.onShowMessage,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user