Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 2,111 Bytes
5acd9c3 d1c1604 5acd9c3 59e0f6a 5acd9c3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
// lib/widgets/maintenance_screen.dart
import 'package:flutter/material.dart';
import 'package:aitube2/theme/colors.dart';
class MaintenanceScreen extends StatelessWidget {
final Exception? error;
const MaintenanceScreen({super.key, this.error});
@override
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(
'#aitube2 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,
),
),
),
],
],
),
),
),
);
}
} |