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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user