From 616ab8835183ec9b65fbf589734d773686f67f63 Mon Sep 17 00:00:00 2001 From: "Michael W. Aziz" Date: Wed, 12 Mar 2025 11:39:18 +0200 Subject: [PATCH] [0.1.3] --- lib/src/Widgets/src/image.widget.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/Widgets/src/image.widget.dart b/lib/src/Widgets/src/image.widget.dart index b80f8cf..7bf32dd 100644 --- a/lib/src/Widgets/src/image.widget.dart +++ b/lib/src/Widgets/src/image.widget.dart @@ -92,7 +92,8 @@ class AstromicImage extends StatelessWidget { assert( (assetPath != null && assetBytes == null && assetURL == null) || (assetPath == null && assetBytes != null && assetURL == null) || - (assetPath == null && assetBytes == null && assetURL != null), + (assetPath == null && assetBytes == null && assetURL != null) || + (assetFallback != null), 'Please specify only ONE Asset Source.', ), // Assert that correct sizing plan is provided. @@ -255,7 +256,7 @@ class AstromicImage extends StatelessWidget { //SECTION - Build Return return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { Size size = _calculateSize(constraints); - return SizedBox(width: size.width == double.infinity? null : size.width, height: size.height == double.infinity? null : size.height, child: buildImage(size)); + return SizedBox(width: size.width == double.infinity ? null : size.width, height: size.height == double.infinity ? null : size.height, child: buildImage(size)); }); //!SECTION }