|
|
|
@ -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) => |
|
|
|
|