Files
mobile-app/lib/features/home/presentation/screens/home_screen.dart

119 lines
3.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:real_estate_mobile/core/constants/app_colors.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/features_section.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/hero_section.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/home_header.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/testimonials_section.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/top_professionals_section.dart';
import 'package:real_estate_mobile/features/home/presentation/widgets/trust_stats_section.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Column(
children: [
// Header
SafeArea(
bottom: false,
child: const HomeHeader(),
),
// Hero Section with Search
const HeroSection(),
const SizedBox(height: 40),
// Features Section
const FeaturesSection(),
const SizedBox(height: 40),
// Top Professionals Section
const TopProfessionalsSection(),
const SizedBox(height: 40),
// Trust & Stats Section
const TrustStatsSection(),
const SizedBox(height: 40),
// Testimonials Section
const TestimonialsSection(),
const SizedBox(height: 40),
// Footer
_buildFooter(),
],
),
),
);
}
Widget _buildFooter() {
return Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 24),
color: AppColors.primaryDark,
child: Column(
children: [
Image.asset(
'assets/icons/logo.png',
width: 109,
height: 29,
color: Colors.white,
),
const SizedBox(height: 16),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
_buildFooterLink('Home'),
_buildFooterDot(),
_buildFooterLink('About'),
_buildFooterDot(),
_buildFooterLink('Contact'),
_buildFooterDot(),
_buildFooterLink('FAQ'),
],
),
const SizedBox(height: 16),
Text(
'\u00A9 2025 RE-QuestN. All rights reserved.',
style: TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 12,
fontWeight: FontWeight.w400,
color: Colors.white.withValues(alpha: 0.6),
),
),
],
),
);
}
Widget _buildFooterLink(String text) {
return Text(
text,
style: const TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 14,
fontWeight: FontWeight.w400,
color: Colors.white,
),
);
}
Widget _buildFooterDot() {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Text(
'\u2022',
style: TextStyle(
fontSize: 14,
color: Colors.white.withValues(alpha: 0.5),
),
),
);
}
}