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:
@ -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,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user