On Flutter, it is called a snack bar. Pretty handy to show error, success or any warning message to the user. To make it reusable, let’s extract snack bar content. I’m going to call it CustomSnackBarContent . Create a required parameter for error text, then pass it to CustomSnakBarContent.
1 Comment
Sort: