Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

await SwiperController.Next() problem #104

Open
anton-dot opened this issue Jul 22, 2024 · 0 comments
Open

await SwiperController.Next() problem #104

anton-dot opened this issue Jul 22, 2024 · 0 comments

Comments

@anton-dot
Copy link

When i use await in my custom loop function the app hangs

SwiperController SwiperUI = SwiperController();
 while (IsAutoPlay) {
      await SwiperUI.next();
     //some other logics goes here
}

When i use without await - app works fine, but i need to use delay

SwiperController SwiperUI = SwiperController();
 while (IsAutoPlay) {
      SwiperUI.next();
    await Future.delayed(const Duration(seconds: 2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant