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

29 lines
698 B
Dart
Raw Normal View History

2021-01-13 16:45:46 +00:00
import 'package:flutter/material.dart';
class BrandError extends StatelessWidget {
2021-03-15 15:39:44 +00:00
const BrandError({Key? key, this.error, this.stackTrace}) : super(key: key);
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
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: Center(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(error.toString()),
2022-05-24 18:55:39 +00:00
const Text('stackTrace: '),
2021-01-13 16:45:46 +00:00
Text(stackTrace.toString()),
],
),
),
),
),
);
}
}