buildErrorImage method
Implementation
Widget buildErrorImage(String url, String alt, Object? error) {
return ProxyRichText(
TextSpan(children: [
WidgetSpan(
child: Icon(Icons.broken_image,
color: Colors.redAccent,
size: (parentStyle?.fontSize ??
config.p.textStyle.fontSize ??
16) *
(parentStyle?.height ?? config.p.textStyle.height ?? 1.2))),
TextSpan(text: alt, style: parentStyle ?? config.p.textStyle),
]),
richTextBuilder: visitor.richTextBuilder,
);
}