selfprivacy.org.app/lib/ui/components/error/error.dart
2022-06-10 00:13:06 +03:00

27 lines
709 B
Dart

import 'package:flutter/material.dart';
class BrandError extends StatelessWidget {
const BrandError({final super.key, this.error, this.stackTrace});
final Object? error;
final StackTrace? stackTrace;
@override
Widget build(final BuildContext context) => SafeArea(
child: Scaffold(
body: Center(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(error.toString()),
const Text('stackTrace: '),
Text(stackTrace.toString()),
],
),
),
),
),
);
}