refactor!: initial attachments refactor.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-07-28 21:07:02 +05:30
committed by xsahil03x
parent eb6f0852e8
commit f246de55a1
61 changed files with 3628 additions and 1712 deletions
@@ -30,7 +30,7 @@ void main() {
300,
)),
message: Message(),
attachment: Attachment(
file: Attachment(
type: 'file',
title: 'example.pdf',
extraData: const {
@@ -30,7 +30,7 @@ void main() {
300,
)),
message: Message(),
attachment: Attachment(
file: Attachment(
type: 'giphy',
title: 'example.gif',
imageUrl:
@@ -26,13 +26,12 @@ void main() {
channel: channel,
child: SizedBox(
child: StreamImageAttachment(
messageTheme: streamTheme.ownMessageTheme,
constraints: BoxConstraints.tight(const Size(
300,
300,
)),
message: Message(),
attachment: Attachment(
file: Attachment(
type: 'image',
title: 'example.png',
imageUrl:
@@ -25,14 +25,13 @@ void main() {
child: StreamChannel(
channel: channel,
child: SizedBox(
child: StreamImageGroup(
messageTheme: streamTheme.ownMessageTheme,
child: StreamGalleryAttachment(
constraints: BoxConstraints.tight(const Size(
300,
300,
)),
message: Message(),
images: [
attachments: [
Attachment(
type: 'image',
title: 'example.png',