fix: Removed bubble for giphy, changed border radii
This commit is contained in:
@@ -266,26 +266,36 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
return Container(
|
return Container(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
CachedNetworkImage(
|
Container(
|
||||||
height: size?.height,
|
decoration: BoxDecoration(
|
||||||
width: size?.width,
|
borderRadius: BorderRadius.only(
|
||||||
placeholder: (_, __) {
|
topRight: Radius.circular(8.0),
|
||||||
return Container(
|
bottomRight: Radius.circular(0.0),
|
||||||
width: size?.width,
|
topLeft: Radius.circular(8.0),
|
||||||
height: size?.height,
|
bottomLeft: Radius.circular(8.0),
|
||||||
child: Center(
|
),
|
||||||
child: CircularProgressIndicator(),
|
),
|
||||||
),
|
child: CachedNetworkImage(
|
||||||
);
|
height: size?.height,
|
||||||
},
|
width: size?.width,
|
||||||
imageUrl: attachment.thumbUrl ??
|
placeholder: (_, __) {
|
||||||
attachment.imageUrl ??
|
return Container(
|
||||||
attachment.assetUrl,
|
width: size?.width,
|
||||||
errorWidget: (context, url, error) => AttachmentError(
|
height: size?.height,
|
||||||
attachment: attachment,
|
child: Center(
|
||||||
size: size,
|
child: CircularProgressIndicator(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
imageUrl: attachment.thumbUrl ??
|
||||||
|
attachment.imageUrl ??
|
||||||
|
attachment.assetUrl,
|
||||||
|
errorWidget: (context, url, error) => AttachmentError(
|
||||||
|
attachment: attachment,
|
||||||
|
size: size,
|
||||||
|
),
|
||||||
|
fit: BoxFit.cover,
|
||||||
),
|
),
|
||||||
fit: BoxFit.cover,
|
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user