Nicer images

onboarding
Christian Pauly 6 years ago
parent 1141b9a4d5
commit 64848365a9

@ -28,14 +28,14 @@ class _ImageBubbleState extends State<ImageBubble> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final int size = 400;
return Bubble( return Bubble(
padding: BubbleEdges.all(0), padding: BubbleEdges.all(0),
radius: Radius.circular(10), radius: Radius.circular(10),
color: Theme.of(context).secondaryHeaderColor,
elevation: 0, elevation: 0,
child: Container( child: Container(
height: size.toDouble(), height: 300,
width: size.toDouble(), width: 400,
child: Builder( child: Builder(
builder: (BuildContext context) { builder: (BuildContext context) {
if (_error != null) { if (_error != null) {
@ -50,8 +50,6 @@ class _ImageBubbleState extends State<ImageBubble> {
onTap: () => _file.open(), onTap: () => _file.open(),
child: Image.memory( child: Image.memory(
_file.bytes, _file.bytes,
width: size.toDouble(),
height: size.toDouble(),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
); );

Loading…
Cancel
Save