part of '../neon.dart'; final _cacheManager = DefaultCacheManager(); abstract class CachedImage extends StatelessWidget { const CachedImage({ required this.future, this.isSvgHint = false, this.height, this.width, this.fit, this.svgColor, this.iconColor, super.key, }); final Future future; final bool isSvgHint; final double? height; final double? width; final BoxFit? fit; final Color? svgColor; final Color? iconColor; @override Widget build(final BuildContext context) => FutureBuilder( future: future, builder: (final context, final fileSnapshot) { if (fileSnapshot.hasData) { final content = fileSnapshot.data!.readAsBytesSync(); try { // TODO: Is this safe enough? if (isSvgHint || utf8.decode(content).contains('