feat: Add professional ratings to cards, implement scroll-to-top on home tab re-tap, and improve agent type fetching in the hero section.

This commit is contained in:
pradeepkumar
2026-03-15 22:28:59 +05:30
parent 1fafbb1eb4
commit f6263b833c
6 changed files with 76 additions and 17 deletions

View File

@@ -8,12 +8,21 @@ import 'package:real_estate_mobile/features/home/presentation/widgets/testimonia
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';
/// Global scroll controller for the home screen so the bottom nav can scroll to top.
final homeScrollControllerProvider = Provider<ScrollController>((ref) {
final controller = ScrollController();
ref.onDispose(() => controller.dispose());
return controller;
});
class HomeScreen extends ConsumerWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
final scrollController = ref.watch(homeScrollControllerProvider);
return SingleChildScrollView(
controller: scrollController,
child: Column(
children: [
// Hero Section with Search