snackbar2 method
Implementation
Widget? snackbar2(context, {required String text, bool? isFloating = false}) {
bool show = true;
Timer(const Duration(seconds: 5), () {
show = false;
});
if (show) {
return Container(
height: 100,
width: 100,
color: Colors.green,
);
}
return null;
}