getOnError static method
Implementation
static Widget getOnError(BuildContext context,
{Color? backgroundColor,
Color? shadowColor,
String? errorIconUrl,
String? errorIconPackageName,
String? errorStateText,
Color? errorIconTint,
TextStyle? errorTextStyle}) {
return Chip(
backgroundColor: backgroundColor,
shadowColor: shadowColor,
label: Row(
children: [
Image.asset(
errorIconUrl ?? AssetConstants.repliesError,
package: errorIconPackageName ?? UIConstants.packageName,
color: errorIconTint,
),
const SizedBox(
width: 10,
),
Text(
errorStateText ?? Translations.of(context).somethingWentWrongError,
style: errorTextStyle,
),
],
),
);
}