mc_gallery/lib/features/core/views/error_page_view.dart

26 lines
525 B
Dart
Raw Normal View History

2022-12-19 13:03:38 +00:00
import 'package:flutter/widgets.dart';
import '../widgets/gap.dart';
class ErrorPageView extends StatelessWidget {
const ErrorPageView({
required this.error,
super.key,
});
final Exception? error;
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Text('Oopsie, there has been an error. Hang tight till we do something about it.'),
const Gap(16),
Text('what happened: $error'),
],
),
);
}
}