Fix imageviewer
This commit is contained in:
parent
ecb41fe155
commit
5c666e542d
3 changed files with 24 additions and 8 deletions
|
|
@ -8,11 +8,17 @@ class ImageBubble extends StatefulWidget {
|
|||
final Event event;
|
||||
final bool tapToView;
|
||||
final BoxFit fit;
|
||||
final bool maxSize;
|
||||
final Color backgroundColor;
|
||||
final double radius;
|
||||
|
||||
const ImageBubble(
|
||||
this.event, {
|
||||
this.tapToView = true,
|
||||
this.maxSize = true,
|
||||
this.backgroundColor,
|
||||
this.fit = BoxFit.cover,
|
||||
this.radius = 10.0,
|
||||
Key key,
|
||||
}) : super(key: key);
|
||||
|
||||
|
|
@ -39,12 +45,12 @@ class _ImageBubbleState extends State<ImageBubble> {
|
|||
Widget build(BuildContext context) {
|
||||
return Bubble(
|
||||
padding: BubbleEdges.all(0),
|
||||
radius: Radius.circular(10),
|
||||
color: Theme.of(context).secondaryHeaderColor,
|
||||
radius: Radius.circular(widget.radius),
|
||||
color: widget.backgroundColor ?? Theme.of(context).secondaryHeaderColor,
|
||||
elevation: 0,
|
||||
child: Container(
|
||||
height: 300,
|
||||
width: 400,
|
||||
height: widget.maxSize ? 300 : null,
|
||||
width: widget.maxSize ? 400 : null,
|
||||
child: Builder(
|
||||
builder: (BuildContext context) {
|
||||
if (_error != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue