showDebugSnackBar function

void showDebugSnackBar(
  1. BuildContext context,
  2. String message
)

Shows a snackbar with a message.

Implementation

void showDebugSnackBar(BuildContext context, String message) {
  final theme = context.debugPanelTheme;

  ScaffoldMessenger.of(context).showSnackBar(
    SnackBar(
      content: Text(message, style: theme.textStyle()),
      backgroundColor: theme.surfaceColor,
      duration: const Duration(seconds: 1),
    ),
  );
}