selfprivacy.org.app/lib/ui/components/error/error.dart

27 lines
709 B
Dart
Raw Normal View History

2021-01-13 16:45:46 +00:00
import 'package:flutter/material.dart';
class BrandError extends StatelessWidget {
2022-06-05 19:36:32 +00:00
const BrandError({final super.key, this.error, this.stackTrace});
2021-01-13 16:45:46 +00:00
2021-03-15 15:39:44 +00:00
final Object? error;
final StackTrace? stackTrace;
2021-01-13 16:45:46 +00:00
@override
2022-06-05 19:36:32 +00:00
Widget build(final BuildContext context) => SafeArea(
2022-06-09 21:13:06 +00:00
child: Scaffold(
body: Center(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(error.toString()),
const Text('stackTrace: '),
Text(stackTrace.toString()),
],
),
2021-01-13 16:45:46 +00:00
),
),
),
2022-06-09 21:13:06 +00:00
);
2021-01-13 16:45:46 +00:00
}