Browse Source

fix(neon): Fix NeonCachedImage BoxFit

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/943/head
jld3103 1 year ago
parent
commit
f611ac82e7
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/neon/neon/lib/src/widgets/image.dart

4
packages/neon/neon/lib/src/widgets/image.dart

@ -135,8 +135,7 @@ class NeonCachedImage extends StatefulWidget {
class _NeonCachedImageState extends State<NeonCachedImage> {
@override
Widget build(final BuildContext context) => Center(
child: FutureBuilder(
Widget build(final BuildContext context) => FutureBuilder(
future: widget.image,
builder: (final context, final fileSnapshot) {
if (fileSnapshot.hasError) {
@ -176,7 +175,6 @@ class _NeonCachedImageState extends State<NeonCachedImage> {
errorBuilder: (final context, final error, final stacktrace) => _buildError(error),
);
},
),
);
Widget _buildError(final Object? error) =>

Loading…
Cancel
Save