refactor!: initial attachments refactor.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user