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

AssertionError #60

Open
KubrickRubrik opened this issue Aug 5, 2024 · 1 comment
Open

AssertionError #60

KubrickRubrik opened this issue Aug 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KubrickRubrik
Copy link

An error occurs when using pullToRefreshKey.currentState?.hide() before onRefresh has completed.

'package:custom_refresh_indicator/src/custom_refresh_indicator.dart': Failed assertion: line 580 pos 12: 'controller.state.isLoading': is not true.
I/flutter ( 7139): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
I/flutter ( 7139): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
I/flutter ( 7139): #2      CustomRefreshIndicatorState._hideAfterRefresh (package:custom_refresh_indicator/src/custom_refresh_indicator.dart:580:12)
I/flutter ( 7139): #3      CustomRefreshIndicatorState._start (package:custom_refresh_indicator/src/custom_refresh_indicator.dart:574:13)
I/flutter ( 7139): <asynchronous suspension>
@gonuit
Copy link
Owner

gonuit commented Sep 3, 2024

Indeed, this might happen. I will work on this soon 👌

@gonuit gonuit added the bug Something isn't working label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants