show_error_handler 0.0.4 copy "show_error_handler: ^0.0.4" to clipboard
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');
    },
);
2
likes
150
points
1
downloads

Publisher

verified publisherweincode.dev

Weekly Downloads

A Flutter package that provides a convenient and customizable way to display errors to the user.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

dart_code_linter, flutter

More

Packages that depend on show_error_handler