import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sk_base_mobile/screens/inventory_inout/components/task_list.dart';
import 'package:sk_base_mobile/screens/inventory_inout/inventory_inout_controller.dart';

class InventoryInoutView extends StatelessWidget {
  InventoryInoutView({super.key});
  final controller = Get.put(InventoryInoutController());
  @override
  Widget build(BuildContext context) {
    return PageView(
        physics: const BouncingScrollPhysics(),
        reverse: true,
        onPageChanged: (index) {
          controller.changePage(index);
        },
        controller: controller.pageController,
        children: List.generate(
            controller.daysNum,
            (index) => TaskList(
                  index: index,
                )));
  }
}
