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!: declarative api #15

Merged
merged 22 commits into from
Feb 28, 2022
Merged

refactor!: declarative api #15

merged 22 commits into from
Feb 28, 2022

Conversation

jeroen-meijer
Copy link
Contributor

@jeroen-meijer jeroen-meijer commented Apr 2, 2021

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

  • Add more tests.
  • Ensure 100% code coverage.
  • Update documentation.
  • Improve/otherwise update example project.
  • Upload to pub.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@jeroen-meijer jeroen-meijer self-assigned this Apr 2, 2021
@jeroen-meijer jeroen-meijer linked an issue Apr 2, 2021 that may be closed by this pull request
pubspec.yaml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@felangel felangel left a 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 👍

@jeroen-meijer jeroen-meijer force-pushed the refactor/declarative-api branch from be24ca2 to a2afe46 Compare April 9, 2021 13:52
@jeroen-meijer jeroen-meijer requested a review from felangel April 9, 2021 17:30
@jeroen-meijer jeroen-meijer force-pushed the refactor/declarative-api branch from 55eafb5 to 5d167c5 Compare April 9, 2021 17:37
@orestesgaolin
Copy link

Do you need some support with finishing the PR?

README.md Outdated Show resolved Hide resolved
@jeroen-meijer jeroen-meijer changed the title refactor: declarative api (breaking) refactor!: declarative api Nov 18, 2021
@jeroen-meijer
Copy link
Contributor Author

@felangel As discussed offline, this refactor looks ready to get reviewed, merged and released! 😄

erickzanardo
erickzanardo previously approved these changes Feb 9, 2022
Copy link
Contributor

@erickzanardo erickzanardo left a 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 🚀

@@ -8,13 +8,16 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
bloc: ^7.2.1
Copy link
Contributor

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?

this.loadingBuilder,
this.errorBuilder,
this.separatorBuilder,
required this.itemBuilder,
Copy link
Contributor

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

_timer = Timer(_delay, action);
/// Calls the given [callback] after the given duration has passed.
@visibleForTesting
void call(void Function() callback) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
void call(void Function() callback) {
void call(VoidCallback callback) {

test/very_good_infinite_list_test.dart Show resolved Hide resolved
test/very_good_infinite_list_test.dart Show resolved Hide resolved
@felangel felangel merged commit 63ea488 into main Feb 28, 2022
@felangel felangel deleted the refactor/declarative-api branch February 28, 2022 21:33
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.

Declarative API Reasoning (Breaking Changes)
6 participants