mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-10 05:47:19 +00:00
30 lines
728 B
Dart
30 lines
728 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter/widgets.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()),
|
||
|
Text('stackTrace: '),
|
||
|
Text(stackTrace.toString()),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|