yubioath-flutter/lib/error_page.dart
2022-05-12 12:05:18 +02:00

27 lines
590 B
Dart
Executable File

import 'package:flutter/material.dart';
class ErrorPage extends StatelessWidget {
final String error;
const ErrorPage({required this.error, super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Application error'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
error,
style: Theme.of(context).textTheme.headline4,
),
],
),
),
);
}
}