SnackBarExtension extension

Extension on BuildContext to easily show styled snackbars based on SnackBarType.

Example usage:

context.showSnackBar('Operation successful', type: SnackBarType.success);
on

Methods

showSnack(String message, {SnackBarType type = SnackBarType.defaultMode, Color? backgroundColor, Color? textColor, Duration duration = const Duration(seconds: 1)}) → void

Available on BuildContext, provided by the SnackBarExtension extension

Shows a clean floating snackbar with optional overrides.