26 lines
525 B
Dart
26 lines
525 B
Dart
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'),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|