You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
448 B
Dart
24 lines
448 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class Error extends StatelessWidget {
|
|
final dynamic error;
|
|
final int? errorCode;
|
|
|
|
const Error({
|
|
Key? key,
|
|
this.error,
|
|
this.errorCode,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Text(
|
|
"$error $errorCode",
|
|
style: const TextStyle(color: Colors.white),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
);
|
|
}
|
|
}
|