dio
linter
dio | linter | |
---|---|---|
8 | 8 | |
11,371 | 627 | |
- | 0.2% | |
4.0 | 8.7 | |
about 1 year ago | 12 days ago | |
Dart | Dart | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dio
-
[Official] Dio is no longer being maintained.
With no release in the last 6 months, piling up of issues and launch of a new fork (diox), I felt something was going on with dio. Sadly, today I came across an official announcement (updated on the project repo 2 days back):
-
Dio caching experience
You might want to think twice about dio....we evaluated dio on a recent project and decided to avoid it after running into a blocker when setting a custom timeout (this bug: https://github.com/flutterchina/dio/issues/1454)
- Dio, maintaining session
- NO_RENEGOTIATION error when trying to do HTTPS
- Dio – A powerful HTTP client for Dart
-
GetX is dead, what to use next?
- and Dio for http requests
-
Thoughts on creating a library with Dart for browser and node
I also had some troubles choosing which Dart HTTP client to use. I've started with dio, but when I tried to read one of our bigger JSON responses (~1.5mb) my browser tab froze (there seems to be an old issue describing the same behavior). After that I've switched to the default dart's http package and it is working fine but it doesn't have builtin requests abort/cancellation.
- How to rerun function if it return x?
linter
-
The Montreal Problem: Why Programming Languages Need a Style Czar
Same with Dart. You may not like the style too much, but at least it's consistent and everyone uses it.
Dart also has a kind of "standard lints" (one for Flutter, one for just Dart): https://dart.dev/tools/linter-rules
Even though you can write your own lints to verify every little detail of the code, the fact that standards exist is great.
Check out the rules enabled by the default lints, it's pretty amazing: https://github.com/dart-lang/lints/blob/main/rules.md
- Dart Error handling using Records (golang style)
- Why shouldn’t Either be used for error handling?
- Is it possible to know all the exceptions a method CAN throw
-
Dart null safety vs type safety (dart linter in strong mode)
It wouldn't hurt to make an issue on the linter repo https://github.com/dart-lang/linter, requesting a lint for casts that are known to be more restrictive than they need to be. So in this case its casting to a `String` but the type of the parameter the expression is passed to is `String?`, which is more restrictive (doesn't include null). There should be enough information to trigger such a lint in many situations - basically as long as there is some known type that the expression needs to be assignable to, in this case `String?`.
-
Thoughts on creating a library with Dart for browser and node
I've already converted 70% of the JS implementation in Dart, only for the browser for test, but the result was not as good as I hoped. The bundle size at the moment is ~110kb (with the -O4 flag). And I happen to learn that using async/await additionally increases the size with ~30kb (this angulardart issue is the only explanation I could found).
- Off my chest: Document the type of exception a method throws in the docs.
-
Is there a linter rule to disallow functional widgets?
I couldn't find anything, so I raised an issue https://github.com/dart-lang/linter/issues/2410
What are some alternatives?
getx - Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
flutter-go - flutter 开发者帮助 APP,包含 flutter 常用 140+ 组件的demo 演示与中文文档
graphql-flutter - A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
sdk - The Dart SDK, including the VM, dart2js, core libraries, and more.
flutter-design-patterns - Flutter Design Patterns application
import-lint - The Import Lint package defines import lint rules and report on lints found in Dart code.
sentry-dart - Sentry SDK for Dart and Flutter
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
bloc - A predictable state management library that helps implement the BLoC design pattern
irishman - 🇮🇪 A generic programming language interpreter, linter, formatter, and all that jazz, written in Dart.
flutterfire - 🔥 A collection of Firebase plugins for Flutter apps.
centrifuge-dart - Dart (Flutter) client SDK for bidirectional communication with Centrifugo and Centrifuge-based server over WebSocket