import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:sk_base_mobile/constants/bg_color.dart'; import 'package:sk_base_mobile/screens/home/components/custom_app_bar.dart'; import 'package:sk_base_mobile/screens/home/components/date_container.dart'; import 'package:sk_base_mobile/screens/home/home_controller.dart'; class UperBody extends StatelessWidget { UperBody({super.key}); final controller = Get.put(HomeController()); @override Widget build(BuildContext context) { return Column( children: [ const SizedBox( height: defaultPadding, ), CustomAppBar(), SizedBox( height: 150, child: ListView.builder( controller: controller.scrollController, itemCount: 7, shrinkWrap: true, scrollDirection: Axis.horizontal, padding: const EdgeInsets.only(bottom: 30, top: defaultPadding), itemBuilder: (context, index) { return InkWell( borderRadius: BorderRadius.circular(20), onTap: () => controller.setIndex(index), child: DateContainer(index: index), ); }, ), ), ], ); } }