update giphy label

This commit is contained in:
Salvatore Giordano
2020-11-16 16:59:58 +01:00
parent 4ff3a225b2
commit b0cbcbc6c8
+21 -27
View File
@@ -283,18 +283,6 @@ class GiphyAttachment extends StatelessWidget {
Widget _buildSentAttachment(context) { Widget _buildSentAttachment(context) {
return Container( return Container(
child: Column(
children: [
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topRight: Radius.circular(16.0),
bottomRight: Radius.circular(0.0),
topLeft: Radius.circular(16.0),
bottomLeft: Radius.circular(16.0),
),
),
clipBehavior: Clip.antiAlias,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) { Navigator.push(context, MaterialPageRoute(builder: (_) {
@@ -305,7 +293,9 @@ class GiphyAttachment extends StatelessWidget {
); );
})); }));
}, },
child: CachedNetworkImage( child: Stack(
children: [
CachedNetworkImage(
height: size?.height, height: size?.height,
width: size?.width, width: size?.width,
placeholder: (_, __) { placeholder: (_, __) {
@@ -326,38 +316,42 @@ class GiphyAttachment extends StatelessWidget {
), ),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), Positioned(
),
Padding(
padding: const EdgeInsets.only(
top: 8.0,
bottom: 8, bottom: 8,
left: 8,
child: Material(
color: Colors.black.withOpacity(.5),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
), ),
child: Row( child: Row(
children: [
Row(
children: [ children: [
Icon( Icon(
StreamIcons.lightning, StreamIcons.lightning,
color: StreamChatTheme.of(context).accentColor, color: Colors.white,
size: 15.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,
), ),
), ),
], ],
), ),
],
mainAxisAlignment: MainAxisAlignment.start,
), ),
) ),
),
], ],
), ),
),
); );
} }
} }