fix: Blurhash crashes on height 0

pull/674/head
krille-chan 2 years ago
parent e76781a24b
commit 5f94ecf1a0
No known key found for this signature in database

@ -52,8 +52,10 @@ class ImageBubble extends StatelessWidget {
var height = 32;
if (ratio > 1.0) {
height = (width / ratio).round();
if (height <= 0) height = 1;
} else {
width = (height * ratio).round();
if (width <= 0) width = 1;
}
return SizedBox(
width: this.width,

Loading…
Cancel
Save