### Show Persistent Snackbar Source: https://github.com/lanarsinc/top-snackbar-flutter/blob/main/README.md Demonstrates how to show a persistent top snackbar that remains visible until explicitly dismissed. It also shows how to get and use the animation controller for dismissal. ```dart AnimationController localAnimationController; TapBounceContainer( onTap: () { showTopSnackBar( Overlay.of(context), CustomSnackBar.info( message: "Persistent SnackBar", ), persistent: true, onAnimationControllerInit: (controller) => localAnimationController = controller, ); }, child: buildButton(context, "Show persistent SnackBar"), ), TapBounceContainer( onTap: () => localAnimationController.reverse(), child: buildButton(context, "Dismiss"), ), ``` -------------------------------- ### Show Info Snackbar Source: https://github.com/lanarsinc/top-snackbar-flutter/blob/main/README.md Displays an info-themed top snackbar with a provided message. It requires the overlay context and a CustomSnackBar widget. ```dart showTopSnackBar( Overlay.of(context), CustomSnackBar.info( message: "There is some information. You need to do something with that", ), ); ``` -------------------------------- ### Show Success Snackbar Source: https://github.com/lanarsinc/top-snackbar-flutter/blob/main/README.md Displays a success-themed top snackbar with a provided message. It requires the overlay context and a CustomSnackBar widget. ```dart showTopSnackBar( Overlay.of(context), CustomSnackBar.success( message: "Good job, your release is successful. Have a nice day", ), ); ``` -------------------------------- ### Show Error Snackbar Source: https://github.com/lanarsinc/top-snackbar-flutter/blob/main/README.md Displays an error-themed top snackbar with a provided message. It requires the overlay context and a CustomSnackBar widget. ```dart showTopSnackBar( Overlay.of(context), CustomSnackBar.error( message: "Something went wrong. Please check your credentials and try again", ), ); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.