top_snackbar_flutter 0.0.1 copy "top_snackbar_flutter: ^0.0.1" to clipboard
top_snackbar_flutter: ^0.0.1 copied to clipboard

outdated

A new Flutter plugin.

top-snackbar-flutter #

Made in lanars.com.

Getting Started #

In order to show a CustomSnackBar you need to call a showTopSnackBar function. You can pass there any widget you want but we have a CustomSnackBar for example.

showTopSnackBar(
    context,
    CustomSnackBar.success(
      message:
          "Good job, your release is successful. Have a nice day",
    ),
);
showTopSnackBar(
    context,
    CustomSnackBar.info(
      message:
          "There is some information. You need to do something with that",
    ),
);
showTopSnackBar(
    context,
    CustomSnackBar.error(
      message:
          "Something went wrong. Please check your credentials and try again",
    ),
);