Files
LearnIT/lib/shared/presentation/pages/not_found_page.dart

47 lines
1.3 KiB
Dart

import 'package:flutter/material.dart';
import '../../../../core/theme/app_colors.dart';
import '../../../../l10n/app_localizations.dart';
class NotFoundPage extends StatelessWidget {
const NotFoundPage({super.key});
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context)!;
return Scaffold(
backgroundColor: AppColors.background,
appBar: AppBar(
title: Text(l10n.pageNotFound),
backgroundColor: AppColors.surface,
foregroundColor: AppColors.textPrimary,
elevation: 0,
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.error_outline, size: 64, color: AppColors.error),
const SizedBox(height: 16),
Text(
l10n.pageNotFound,
style: const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: AppColors.textPrimary,
),
),
const SizedBox(height: 8),
Text(
'A página que procura não existe.',
style: const TextStyle(
fontSize: 16,
color: AppColors.textSecondary,
),
),
],
),
),
);
}
}