import 'package:flutter/material.dart'; import 'package:konectar_events/utils/constants.dart'; class SnackBarWidget { static displaySnackBar(String msg, BuildContext context) { final snackBar = SnackBar( content: Text( msg, style: TextStyle(color: Colors.black), ), backgroundColor: Constants.oldbgcolor, duration: Durations.long1, ); ScaffoldMessenger.of(context).showSnackBar(snackBar); //scaffoldKeyLogin.currentState!.showSnackBar(snackBar); } }