feat: giphy color

This commit is contained in:
Deven Joshi
2020-10-30 14:02:38 +05:30
parent d94d0ba8af
commit dcc9edd978
2 changed files with 54 additions and 52 deletions
+4 -2
View File
@@ -31,7 +31,8 @@ class GiphyAttachment extends StatelessWidget {
);
}
return Column(
return Container(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
@@ -75,7 +76,7 @@ class GiphyAttachment extends StatelessWidget {
Container(
alignment: Alignment.bottomCenter,
child: Material(
color: messageTheme.messageBackgroundColor,
color: Colors.white,
child: AttachmentTitle(
messageTheme: messageTheme,
attachment: attachment,
@@ -88,6 +89,7 @@ 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.copyWith(messageBackgroundColor: Colors.white),
messageTheme: messageTheme.copyWith(messageBackgroundColor: Colors.white,),
message: message,
size: Size(
MediaQuery.of(context).size.width * 0.8,