2020-06-23 19:23:12 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2020-09-18 17:36:41 +00:00
|
|
|
import 'package:freezer/translations.i18n.dart';
|
2020-06-23 19:23:12 +00:00
|
|
|
|
|
|
|
class ErrorScreen extends StatelessWidget {
|
|
|
|
|
|
|
|
final String message;
|
|
|
|
|
|
|
|
ErrorScreen({this.message});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Icon(
|
|
|
|
Icons.error,
|
|
|
|
color: Colors.red,
|
|
|
|
size: 64.0,
|
|
|
|
),
|
|
|
|
Container(height: 4.0,),
|
2020-09-18 17:36:41 +00:00
|
|
|
Text(message ?? 'Please check your connection and try again later...'.i18n)
|
2020-06-23 19:23:12 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|