show_error_handler 0.0.4
show_error_handler: ^0.0.4 copied to clipboard
A Flutter package that provides a convenient and customizable way to display errors to the user.
0.0.1 Initial Release #
π Introducing show_error_handler: This package provides a streamlined approach to displaying errors in your Flutter applications.
Features: #
- WcBaseError: A fundamental class for structuring error information, including message, code, title, description, type, and origin layer.
0.0.2 #
π New Feature: WcAlert
Features: #
- WcAlert Widget: A versatile widget for presenting error alerts with customizable background and text colors.
- showWcAlert Function: A convenient function to trigger the display of WcAlert messages.
Example Usage: #
WcAlert(
error: WcBaseError(title: 'Error', message: 'An unexpected error occurred.'),
backgroundColor: Colors.red,
textColor: Colors.white,
)
0.0.3 #
π’ New Feature: WcModal
Features: #
- WcModal Widget: A modal widget for displaying errors with an icon, message, and an optional action button.
- showWcModal Function: A function to present WcModal dialogs with customizable appearance and action callbacks.
Example Usage: #
WcModal(
error: WcBaseError(
title: 'Error Title',
message: 'Error message goes here.',
),
backgroundColor: Colors.red,
textColor: Colors.white,
icon: Icons.error,
iconColor: Colors.white,
onPressed: () {
print('Action button pressed');
},
);
0.0.4 #
π New Feature: Customizable Button Text in WcModal
Features: #
- Custom Button Text: Users can now define the title of the button in the WcModal widget optionally.
Example Usage: #
WcModal(
error: WcBaseError(
title: 'Error Title',
message: 'Error message goes here.',
),
backgroundColor: Colors.red,
textColor: Colors.white,
icon: Icons.error,
iconColor: Colors.white,
buttonText: 'Retry',
onPressed: () {
print('Action button pressed');
},
);