kopia lustrzana https://gitlab.com/mysocialportal/relatica
Add more padding to the left/right of the link preview.
rodzic
bd9e65f9a6
commit
84e28aaf6b
|
@ -13,26 +13,29 @@ class LinkPreviewControl extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const width = 128.0;
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(width: 0.5),
|
||||
borderRadius: BorderRadius.circular(2.0)),
|
||||
child: GestureDetector(
|
||||
onTap: () async {
|
||||
await openUrlStringInSystembrowser(context, preview.link, 'link');
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
width: width,
|
||||
child: CachedNetworkImage(imageUrl: preview.selectedImageUrl),
|
||||
),
|
||||
Expanded(
|
||||
child: ListTile(
|
||||
title: Text(preview.title),
|
||||
subtitle: Text(preview.description.truncate(length: 128))),
|
||||
),
|
||||
],
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(width: 0.5),
|
||||
borderRadius: BorderRadius.circular(2.0)),
|
||||
child: GestureDetector(
|
||||
onTap: () async {
|
||||
await openUrlStringInSystembrowser(context, preview.link, 'link');
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
width: width,
|
||||
child: CachedNetworkImage(imageUrl: preview.selectedImageUrl),
|
||||
),
|
||||
Expanded(
|
||||
child: ListTile(
|
||||
title: Text(preview.title),
|
||||
subtitle: Text(preview.description.truncate(length: 128))),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue