From 80386946e5e069d445842568531c8e600b7d6ad1 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 10 Apr 2020 18:12:32 +0200 Subject: [PATCH] Nicer images --- lib/components/image_bubble.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/components/image_bubble.dart b/lib/components/image_bubble.dart index c257e1d..339dfc1 100644 --- a/lib/components/image_bubble.dart +++ b/lib/components/image_bubble.dart @@ -28,14 +28,14 @@ class _ImageBubbleState extends State { @override Widget build(BuildContext context) { - final int size = 400; return Bubble( padding: BubbleEdges.all(0), radius: Radius.circular(10), + color: Theme.of(context).secondaryHeaderColor, elevation: 0, child: Container( - height: size.toDouble(), - width: size.toDouble(), + height: 300, + width: 400, child: Builder( builder: (BuildContext context) { if (_error != null) { @@ -50,8 +50,6 @@ class _ImageBubbleState extends State { onTap: () => _file.open(), child: Image.memory( _file.bytes, - width: size.toDouble(), - height: size.toDouble(), fit: BoxFit.cover, ), );