KonectarEvents/lib/widgets/snackbar.dart

18 lines
517 B
Dart
Raw Permalink Normal View History

2024-09-06 06:30:31 +00:00
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),
),
2024-10-08 12:01:59 +00:00
backgroundColor: EventsConstants.oldbgcolor,
2024-09-06 06:30:31 +00:00
duration: Durations.long1,
);
ScaffoldMessenger.of(context).showSnackBar(snackBar);
//scaffoldKeyLogin.currentState!.showSnackBar(snackBar);
}
}