-
Notifications
You must be signed in to change notification settings - Fork 31
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!: declarative api #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments but overall amazing job and thanks for the massive effort 💯
Let me know what you think 👍
be24ca2
to
a2afe46
Compare
55eafb5
to
5d167c5
Compare
Do you need some support with finishing the PR? |
@felangel As discussed offline, this refactor looks ready to get reviewed, merged and released! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of Nits, but LGTM 🚀
example/pubspec.yaml
Outdated
@@ -8,13 +8,16 @@ environment: | |||
sdk: ">=2.12.0 <3.0.0" | |||
|
|||
dependencies: | |||
bloc: ^7.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could update this to the latest bloc version?
lib/very_good_infinite_list.dart
Outdated
this.loadingBuilder, | ||
this.errorBuilder, | ||
this.separatorBuilder, | ||
required this.itemBuilder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: keep the required fields together after the Key for a better reading
lib/very_good_infinite_list.dart
Outdated
_timer = Timer(_delay, action); | ||
/// Calls the given [callback] after the given duration has passed. | ||
@visibleForTesting | ||
void call(void Function() callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void call(void Function() callback) { | |
void call(VoidCallback callback) { |
Co-authored-by: Dominik Roszkowski <[email protected]>
based on feedback from @jdebecka
68fbb3a
to
0c19b8c
Compare
Description
This PR refactors the API to use a more declarative approach, as described in #14.
It includes a version bump to
0.4.0
.TODO
Type of Change