mirror of
https://github.com/AOSSIE-Org/OpenPeerChat-flutter.git
synced 2025-08-16 03:43:08 +08:00
38 lines
989 B
Dart
38 lines
989 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AuthFailedPage extends StatelessWidget {
|
|
final VoidCallback onRetry;
|
|
|
|
const AuthFailedPage({Key? key, required this.onRetry}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Authentication Failed'),
|
|
),
|
|
body: Center(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Text(
|
|
'Authentication didn\'t succeed.\nPlease try again.',
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(fontSize: 18),
|
|
),
|
|
const SizedBox(height: 20),
|
|
ElevatedButton(
|
|
onPressed: onRetry,
|
|
child: const Text('Try Again'),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|