Spaces:
Paused
Paused
| // lib/widgets/maintenance_screen.dart | |
| import 'package:flutter/material.dart'; | |
| class MaintenanceScreen extends StatelessWidget { | |
| final Exception? error; | |
| const MaintenanceScreen({super.key, this.error}); | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| backgroundColor: Colors.black87, | |
| body: Center( | |
| child: Container( | |
| padding: const EdgeInsets.all(24), | |
| constraints: const BoxConstraints(maxWidth: 500), | |
| child: Column( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| children: [ | |
| const Icon( | |
| Icons.construction_rounded, | |
| size: 80, | |
| color: Colors.grey, | |
| ), | |
| const SizedBox(height: 24), | |
| const Text( | |
| '#tikslop is currently in maintenance', | |
| textAlign: TextAlign.center, | |
| style: TextStyle( | |
| color: Colors.grey, | |
| fontSize: 24, | |
| fontWeight: FontWeight.bold, | |
| ), | |
| ), | |
| const SizedBox(height: 16), | |
| const Text( | |
| 'Please follow @flngr on X for news', | |
| textAlign: TextAlign.center, | |
| style: TextStyle( | |
| color: Colors.grey, | |
| fontSize: 16, | |
| ), | |
| ), | |
| if (error != null) ...[ | |
| const SizedBox(height: 24), | |
| Container( | |
| padding: const EdgeInsets.all(16), | |
| decoration: BoxDecoration( | |
| color: Colors.grey.withOpacity(0.1), | |
| borderRadius: BorderRadius.circular(8), | |
| ), | |
| child: Text( | |
| 'Error: $error', | |
| style: const TextStyle( | |
| color: Colors.grey, | |
| fontSize: 14, | |
| ), | |
| ), | |
| ), | |
| ], | |
| ], | |
| ), | |
| ), | |
| ), | |
| ); | |
| } | |
| } |