Update Request cancelled error message

This commit is contained in:
Ashita Prasad
2024-12-16 04:45:32 +05:30
parent 1ea4dd07b4
commit 10bc6f34af
2 changed files with 13 additions and 2 deletions

View File

@ -7,11 +7,13 @@ class ErrorMessage extends StatelessWidget {
const ErrorMessage({
super.key,
required this.message,
this.icon = Icons.warning_rounded,
this.showIcon = true,
this.showIssueButton = true,
});
final String? message;
final IconData icon;
final bool showIcon;
final bool showIssueButton;
@ -27,7 +29,7 @@ class ErrorMessage extends StatelessWidget {
children: [
showIcon
? Icon(
Icons.warning_rounded,
icon,
size: 40,
color: color,
)