Files
fforte/lib/screens/helper/snack_bar_helper.dart

18 lines
647 B
Dart

// * Helper class for displaying snackbar messages
// * Provides a consistent way to show temporary notifications
// * throughout the app
import 'package:flutter/material.dart';
/// Utility class for showing snackbar messages
/// Contains static methods to display notifications
class SnackBarHelper {
/// Display a snackbar message at the bottom of the screen
/// @param context The BuildContext to show the snackbar in
/// @param message The text message to display
static void showSnackBarMessage(BuildContext context, String message) {
ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text(message)));
}
}