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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
const width = 128.0;
|
const width = 128.0;
|
||||||
return Container(
|
return Padding(
|
||||||
decoration: BoxDecoration(
|
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
|
||||||
border: Border.all(width: 0.5),
|
child: Container(
|
||||||
borderRadius: BorderRadius.circular(2.0)),
|
decoration: BoxDecoration(
|
||||||
child: GestureDetector(
|
border: Border.all(width: 0.5),
|
||||||
onTap: () async {
|
borderRadius: BorderRadius.circular(2.0)),
|
||||||
await openUrlStringInSystembrowser(context, preview.link, 'link');
|
child: GestureDetector(
|
||||||
},
|
onTap: () async {
|
||||||
child: Row(
|
await openUrlStringInSystembrowser(context, preview.link, 'link');
|
||||||
children: [
|
},
|
||||||
Container(
|
child: Row(
|
||||||
width: width,
|
children: [
|
||||||
child: CachedNetworkImage(imageUrl: preview.selectedImageUrl),
|
Container(
|
||||||
),
|
width: width,
|
||||||
Expanded(
|
child: CachedNetworkImage(imageUrl: preview.selectedImageUrl),
|
||||||
child: ListTile(
|
),
|
||||||
title: Text(preview.title),
|
Expanded(
|
||||||
subtitle: Text(preview.description.truncate(length: 128))),
|
child: ListTile(
|
||||||
),
|
title: Text(preview.title),
|
||||||
],
|
subtitle: Text(preview.description.truncate(length: 128))),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue