confused_travolta_error_view 1.0.1 copy "confused_travolta_error_view: ^1.0.1" to clipboard
confused_travolta_error_view: ^1.0.1 copied to clipboard

A fun way to display error view.

confused_travolta_error_view #

A fun way to display error view.

Display your error view composed of following components:

  • An appropriate error gif. (Confused Travolta Gif)

  • An error message. (Can be customized with errorWidget, errorMessage and errorMessageStyle)

  • A Retry button. [Optional] (Can be customized with retryButton, retryButtonText and onTapRetryButton).

Example #

Using default values for error and button widgets:

 ConfusedTravoltaErrorView(
    errorMessage: 'You have no Internet connection.',
    onTapRetryButton: () {},
 )

Using custom error and button widgets:

 ConfusedTravoltaErrorView(
    errorText: Text(
        'Ooops! Something went wrong.',
        style: TextStyle(fontSize: 19.0),
    ),
    retryButton: RaisedButton(
        onPressed: () {},
        child: Text('Try again'.toUpperCase()),
        color: Colors.black38,
        textColor: Colors.white,
    ),
 )

Using without a button

ConfusedTravoltaErrorView(
    errorMessage: 'You have no favorites, yet.',
)

Credits #

Confused Travolta Gif

1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A fun way to display error view.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on confused_travolta_error_view