messageError function
Implementation
messageError(BuildContext context, String _text){
dprint("messageError $_text");
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
backgroundColor: Colors.red,
duration: Duration(seconds: 5),
action: SnackBarAction(
label: 'Close',
textColor: Colors.white,
onPressed: () {
ScaffoldMessenger.of(context).hideCurrentSnackBar();
},
),
content: Text(_text,
style: TextStyle(color: Colors.white), textAlign: TextAlign.center,)));
}