init: Start working on attachment

This commit is contained in:
Deven Joshi
2020-10-30 13:56:24 +05:30
parent 95d466bb9b
commit d94d0ba8af
2 changed files with 52 additions and 54 deletions
+1 -3
View File
@@ -31,8 +31,7 @@ class GiphyAttachment extends StatelessWidget {
);
}
return Card(
child: Column(
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
@@ -89,7 +88,6 @@ class GiphyAttachment extends StatelessWidget {
message: message,
),
],
),
);
}
}
+1 -1
View File
@@ -175,7 +175,7 @@ class MessageWidget extends StatefulWidget {
'giphy': (context, message, attachment) {
return GiphyAttachment(
attachment: attachment,
messageTheme: messageTheme,
messageTheme: messageTheme.copyWith(messageBackgroundColor: Colors.white),
message: message,
size: Size(
MediaQuery.of(context).size.width * 0.8,