yubioath-flutter/lib/error_page.dart

27 lines
590 B
Dart
Raw Normal View History

2021-11-19 17:05:57 +03:00
import 'package:flutter/material.dart';
class ErrorPage extends StatelessWidget {
final String error;
2022-05-12 10:56:55 +03:00
const ErrorPage({required this.error, super.key});
2021-11-19 17:05:57 +03:00
@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,
),
],
),
),
);
}
}