comicSearchFailed function
A field's list after its search threw (failure): that it failed, and Try again as a menu row, lit while the keys
are on it or the pointer is over it.
Implementation
Widget comicSearchFailed(
BuildContext context,
DesignSearchError failure, [
ComicStyle? style,
]) {
final words = DesignLocalizations.of(context);
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// The list's own node says it as it appears.
ExcludeSemantics(
child: comicSearchNote(context, words.searchFailedMessage, style),
),
DesignPressable(
onPressed: failure.retry,
semanticLabel: words.retryButtonLabel,
builder: (context, states, _) => ComicMenuRowFace(
states: {
if (failure.focused || states.contains(WidgetState.hovered))
WidgetState.focused,
},
label: words.retryButtonLabel,
start: comicFieldListWords(ComicTheme.of(context), style),
),
),
],
);
}