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) {
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(
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
@@ -305,7 +293,9 @@ class GiphyAttachment extends StatelessWidget {
);
}));
},
child: CachedNetworkImage(
child: Stack(
children: [
CachedNetworkImage(
height: size?.height,
width: size?.width,
placeholder: (_, __) {
@@ -326,38 +316,42 @@ class GiphyAttachment extends StatelessWidget {
),
fit: BoxFit.cover,
),
),
),
Padding(
padding: const EdgeInsets.only(
top: 8.0,
Positioned(
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(
children: [
Row(
children: [
Icon(
StreamIcons.lightning,
color: StreamChatTheme.of(context).accentColor,
size: 15.0,
color: Colors.white,
size: 16,
),
Text(
'GIPHY',
style: TextStyle(
color: StreamChatTheme.of(context).accentColor,
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 11.0,
fontSize: 11,
),
),
],
),
],
mainAxisAlignment: MainAxisAlignment.start,
),
)
),
),
],
),
),
);
}
}