Can't find curves in PageController

I’m try to use PageController to do animation, but I couldn’t find Curve class. Please Help

image
image

My solution is to edit my code and it works fine.

thank you.
quick question, from where can i get it to do animation ?
is it on Nowa ?

On your .dart file add this code.

  int activeIndex = 0;

  PageController? pController = PageController();

  @override
  void initState() {
    super.initState();
    Timer.periodic(const Duration(seconds: 5), (timer) {
      loopPageView();
    });
  }
 void loopPageView() {
    if (activeIndex < 1) {
      activeIndex = activeIndex + 1;
    } else {
      activeIndex = 0;
    }
    pController?.animateToPage(
      activeIndex,
      duration: const Duration(seconds: 1),
      curve: Curves.linear,
    );
  }

  @override
  void dispose() {
    super.dispose();
    pController?.dispose();
  }Preformatted text

Thank a lot man.
i will give it a try