2021-01-13 16:45:46 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/widgets.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()),
|
|
|
|
Text('stackTrace: '),
|
|
|
|
Text(stackTrace.toString()),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|