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

refactor: make PgnTreeView independent of the AnalysisController #1076

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tom-anders
Copy link
Contributor

Note: Most of the file should be moved to something like src/lib/view/pgn/tree_view.dart, but I have not done that yet to make reviewing easier. I'd push a commit that does this once the rest of the code looks good to you

@@ -300,7 +300,7 @@ void main() {

await tester.tap(find.byKey(const Key('goto-previous')));
// need to wait for current move change debounce delay
await tester.pump(const Duration(milliseconds: 200));
await tester.pumpAndSettle(const Duration(milliseconds: 200));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not 100% sure why pump() worked fine before and then with this commit pumpAndSettle() is needed - but with only pump() the Timer behind the debouncer never calls it callback

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

Successfully merging this pull request may close these issues.

1 participant