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'), ), ], ), ), ), ); } }