1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Display posts text and images

This commit is contained in:
2019-05-11 09:48:01 +02:00
parent 35e9c30ba2
commit 315c61a212
3 changed files with 92 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import 'package:flutter/material.dart';
class NetworkImageWidget extends StatelessWidget {
final String url;
final bool allowFullScreen;
final bool roundedEdges;
final double width;
final double height;
@ -20,6 +21,7 @@ class NetworkImageWidget extends StatelessWidget {
this.allowFullScreen = false,
this.width,
this.height,
this.roundedEdges = true,
}) : assert(url != null),
assert(allowFullScreen != null),
super(key: key);
@ -59,7 +61,8 @@ class NetworkImageWidget extends StatelessWidget {
),
),
),
borderRadius: BorderRadius.all(Radius.circular(8.0)),
borderRadius:
roundedEdges ? BorderRadius.all(Radius.circular(8.0)) : null,
clipBehavior: Clip.hardEdge,
);
}