mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Fix an issue with web links
This commit is contained in:
parent
4bcb56aa08
commit
66b4d19004
@ -74,6 +74,8 @@ class Post implements LikeElement {
|
|||||||
|
|
||||||
bool get canUpdate => access == UserAccessLevels.FULL;
|
bool get canUpdate => access == UserAccessLevels.FULL;
|
||||||
|
|
||||||
|
bool get hasLinkImage => linkImage != null;
|
||||||
|
|
||||||
bool get canDelete =>
|
bool get canDelete =>
|
||||||
access == UserAccessLevels.FULL ||
|
access == UserAccessLevels.FULL ||
|
||||||
access == UserAccessLevels.INTERMEDIATE;
|
access == UserAccessLevels.INTERMEDIATE;
|
||||||
|
@ -263,11 +263,16 @@ class _PostTileState extends State<PostTile> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(right: 8.0),
|
padding: const EdgeInsets.only(right: 8.0),
|
||||||
child: NetworkImageWidget(
|
child: widget.post.hasLinkImage
|
||||||
url: widget.post.linkImage,
|
? NetworkImageWidget(
|
||||||
width: 70,
|
url: widget.post.linkImage,
|
||||||
roundedEdges: false,
|
width: 70,
|
||||||
),
|
roundedEdges: false,
|
||||||
|
)
|
||||||
|
: Icon(
|
||||||
|
Icons.link,
|
||||||
|
size: 70,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
Loading…
Reference in New Issue
Block a user