[0.1.3]
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user