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

Debloat pub.dev example #9

Open
JanHitako opened this issue Jun 13, 2024 · 1 comment
Open

Debloat pub.dev example #9

JanHitako opened this issue Jun 13, 2024 · 1 comment

Comments

@JanHitako
Copy link

The current example code on pub.dev is bloaded and includes too much irrelevant details/widgets that does distract from understanding and implementing the core functionality of the package.

This complexity extends the time required to understand and implement the package: for example, usually, it takes me about 15 seconds to at most 1 minute to understand how to implement a package based on the example provided assuming said package is not something very complex such as state management packages, this one took me much more, because I couldn't even see, where in the overly long code the actual tab bar was implemented, and not knowing which line was relevant, I had to read through them one by one.

Suggestion: Provide a shorter, minimal reproducible example focusing only on the package's core implementation. If additional code is necessary, consider adding artificial large spacing and and multiple line of denotation comments to better highlight the essential parts or do extract and abstract away the implementation of all that wrapping around the main package and put them below so that the actual package implementation is seen within the first few lines.

@alihaider78222
Copy link
Owner

Hi @JanHitako,

Thanks for pointing this out and sharing your suggestions, I'll look into that and add a shorter example for the users who need the package's core implementation and for the advanced examples then they can use the current one with all the denotation comments :)

Thanks

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

2 participants