-
Notifications
You must be signed in to change notification settings - Fork 142
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
[Proposal] Hope to standardize the code #273
Comments
👋 Thanks for reporting! @robrbecker will take a look. |
Thanks for your feedback. Keep in mind that this project isn't maintained by a team. It's more or less just me as a volunteer who took it over after being only lightly maintained. After reading your message, it sounds like there are 3 items I can follow up on:
|
Good Lord, you're a patient person @robrbecker Thank you for doing this haha. |
Ok, very much looking forward to it |
Good work
| |
gdream
|
|
***@***.***
|
…---- 回复的原邮件 ----
| 发件人 | Rob ***@***.***> |
| 日期 | 2021年11月28日 23:08 |
| 收件人 | ***@***.***> |
| 抄送至 | Dorain ***@***.******@***.***> |
| 主题 | Re: [SpinlockLabs/github.dart] [Proposal] Hope to standardize the code (Issue #273) |
Closing and linked separate issues for the 3 items that came out of this discussion:
remove username/password: #280
flutter example: #219
editRepository dartdocs: #282
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hello, the offical team.
I am glad that there is such a third-party library in Dart, which is very convenient to help us improve development efficiency.
I am using this library for a small project these days, and it is not good in the process of using it.
First of all, let's see the entry
GitHub(auth: xxx)
. I have to admit that in some other languages (such asGolang
), this package is particularly good, but in Dart, it is a bit bad.@Deprecated
.selected args
andassert
in this situation.Second, in many places, Dart syntax is not used properly, and many of the parameters that should be set for
required
areselected
, which is directly asserted by!
in the source code and made a judgment. E.g:github.dart/lib/src/common/repos_service.dart
Lines 160 to 178 in c72b460
github.dart/lib/src/common/model/repos_contents.dart
Lines 114 to 122 in c72b460
To be honest, the code is a bit bad. I haven't used
GitHub API
many times before, so I tried this library first, but because of the code listed above, I couldn't troubleshoot the error. Because if I don't look at the source code, I have no way to know whether you have set default parameters for the original mandatory parameters.Therefore, I solved the problem by reading the GitHub document and analyzing the network requests issued by DevTools-Network. Speaking of documentation,
example
may also need to be modified. No matter fornative
orflutter
, the content of dart-web is not needed. It seems to be too strenuous.Hope to get better and better.
The text was updated successfully, but these errors were encountered: