showSomethingWentWrong function
Implementation
Widget showSomethingWentWrong(
double hight, double width, String errorMessage1, String errorMessage2) {
var widget = Container(
margin: const EdgeInsets.all(0),
width: width * 0.9,
height: hight * 0.5,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(
height: 10,
),
Text(
errorMessage1,
style: const TextStyle(fontSize: 15, color: Colors.red),
),
const Icon(Icons.error, color: Colors.red, size: 100),
Text(
errorMessage2,
style: const TextStyle(fontSize: 18, color: Colors.red),
),
],
),
);
return widget;
}