top-snackbar-flutter
if you need to show the user some information in a nice way, you can use this package. the api is as simple as api for regular material method showdialog. if you need to use your own widget to display, you can pass it into showtopsnackbar function.
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",
),
);
Comments are closed.