fix giphy badge

This commit is contained in:
Salvatore Giordano
2020-12-04 15:23:25 +01:00
parent b05df98074
commit 44cd3754fb
+14 -17
View File
@@ -103,33 +103,30 @@ class GiphyAttachment extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
left: 0, bottom: 16,
top: 0, left: 16,
child: Container( child: Material(
decoration: BoxDecoration( color: Colors.black.withOpacity(.5),
color: Colors.white, shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.circular(12),
bottomRight: Radius.circular(16.0), ),
)),
child: Padding( child: Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.symmetric(
left: 8.0, horizontal: 8.0,
right: 8.0, vertical: 4.0,
top: 8.0,
bottom: 4.0,
), ),
child: Row( child: Row(
children: [ children: [
StreamSvgIcon.lightning( StreamSvgIcon.lightning(
color: StreamChatTheme.of(context).accentColor, color: Colors.white,
size: 16.0, size: 16,
), ),
Text( Text(
'GIPHY', 'GIPHY',
style: TextStyle( style: TextStyle(
color: StreamChatTheme.of(context).accentColor, color: Colors.white,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 11.0, fontSize: 11,
), ),
), ),
], ],