Closed kh-abir closed 10 months ago
Yeah, I'm also looking for same functionality. Manual snackBar functionality is really needed in many cases
Hello, Sorry for the late reply, I'll add this functionality in the next release
Dear @kh-abir and @Haris2v This functionality is added in v0.4.0, Please open a new issue if you notice any weird behavior.
Here is an snippet of how you can delete a snack bar manually
final snackbar = AnimatedSnackBar(
builder: ((context) {
return Container(
padding: const EdgeInsets.all(8),
height: 50,
child: const Text('A custom snackbar'),
);
}),
);
snackbar.show(context);
snackbar.remove()
I was building a custom-type AnimatedSnacKBar. How can I remove the snack bar manually onTap?