selfprivacy.org.app/lib/ui/components/error/error.dart
2022-05-24 21:55:39 +03:00

29 lines
698 B
Dart

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