2026-02-24 03:19:55 +05:30
|
|
|
import 'package:flutter/material.dart';
|
2026-03-07 23:28:21 +05:30
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
2026-02-24 03:19:55 +05:30
|
|
|
import 'package:real_estate_mobile/core/constants/app_colors.dart';
|
2026-02-25 06:55:05 +05:30
|
|
|
import 'package:real_estate_mobile/features/home/presentation/widgets/featured_professionals_section.dart';
|
2026-02-24 03:19:55 +05:30
|
|
|
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/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';
|
|
|
|
|
|
2026-03-08 16:05:08 +05:30
|
|
|
class HomeScreen extends ConsumerWidget {
|
2026-02-24 03:19:55 +05:30
|
|
|
const HomeScreen({super.key});
|
|
|
|
|
|
2026-02-24 22:35:16 +05:30
|
|
|
@override
|
2026-03-08 16:05:08 +05:30
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
2026-02-24 22:35:16 +05:30
|
|
|
return SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
// Hero Section with Search
|
|
|
|
|
const HeroSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
|
|
|
|
|
|
|
|
|
// Features Section
|
|
|
|
|
const FeaturesSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
2026-02-24 03:19:55 +05:30
|
|
|
|
2026-02-25 06:55:05 +05:30
|
|
|
// Featured Professionals Carousel
|
|
|
|
|
const FeaturedProfessionalsSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
|
|
|
|
|
|
|
|
|
// Top Professionals Section (Agents/Lenders tabs)
|
2026-02-24 22:35:16 +05:30
|
|
|
const TopProfessionalsSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
2026-02-24 03:19:55 +05:30
|
|
|
|
2026-02-24 22:35:16 +05:30
|
|
|
// Trust & Stats Section
|
|
|
|
|
const TrustStatsSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
2026-02-24 03:19:55 +05:30
|
|
|
|
2026-02-24 22:35:16 +05:30
|
|
|
// Testimonials Section
|
|
|
|
|
const TestimonialsSection(),
|
|
|
|
|
const SizedBox(height: 40),
|
2026-02-24 03:19:55 +05:30
|
|
|
|
2026-02-24 22:35:16 +05:30
|
|
|
// Footer
|
|
|
|
|
_buildFooter(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 03:19:55 +05:30
|
|
|
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),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|