errorPlaque function
Implementation
Widget errorPlaque({required String message, required Color color}) {
return Builder(builder: (context) {
return ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Container(
color: color,
child: Center(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Row(
children: <Widget>[
Flexible(
child: Text(message,
style: TextStyle(color: Theme.of(context).errorColor))),
],
),
),
),
),
);
});
}