flutter_query 0.1.17
flutter_query: ^0.1.17

Flutter Android iOS web

A library for asynchronous data fetching and caching

4
likes
60 / 110
pub points
52 %
popularity

We analyzed this package on Dec 3, 2020, and awarded it 60 pub points (of a possible 110):

Follow Dart file conventions
10 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
0 / 20

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

0/10 points: 20% or more of the public API has dartdoc comments

  • 69 out of 585 API elements (11.8 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Support multiple platforms
20 / 20

20/20 points: Supports 3 of 3 possible platforms (iOS, Android, Web)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 46 issues. Showing the first 2:

INFO: The type of the function literal can't be inferred because the literal has a block as its body.

lib/src/config.dart:7:25

  ╷
7 │   final stableStringify = (dynamic value) {
  │ ┌─────────────────────────^
8 │ │   return value;
9 │ │ };
  │ └─^
  ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/config.dart

INFO: The type of the function literal can't be inferred because the literal has a block as its body.

lib/src/config.dart:30:37

   ╷
30 │   final defaultQueryKeySerializerFn = (queryKey) {
   │ ┌─────────────────────────────────────^
31 │ │   try {
32 │ │     final arrayQueryKey = queryKey is List ? queryKey : [queryKey];
33 │ │     final queryHash = stableStringify(arrayQueryKey);
34 │ │     return [queryHash, arrayQueryKey];
35 │ │   } catch (e) {
36 │ │     throw new Exception('A valid query key is required!');
37 │ │   }
38 │ │ };
   │ └─^
   ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/src/config.dart

Support up-to-date dependencies
10 / 20

0/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
flutter_hooks^0.14.10.14.10.15.0
provider^4.3.2+24.3.2+24.3.2+2
rxdart^0.24.10.24.10.24.1
Transitive dependencies
PackageConstraintCompatibleLatest
characters-1.1.0-nullsafety.51.1.0-nullsafety.5
collection-1.15.0-nullsafety.51.15.0-nullsafety.5
meta-1.3.0-nullsafety.61.3.0-nullsafety.6
nested-0.0.40.0.4
typed_data-1.3.0-nullsafety.51.3.0-nullsafety.5
vector_math-2.1.0-nullsafety.52.1.0-nullsafety.5

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.14.1` on flutter_hooks does not support the latest published version `0.15.0`

pubspec.yaml:13:18

   ╷
13 │   flutter_hooks: ^0.14.1
   │                  ^^^^^^^
   ╵

10/10 points: Package supports latest stable Dart and Flutter SDKs

4
likes
60
pub points
52%
popularity

A library for asynchronous data fetching and caching

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

parker.stromberg@gmail.com

License

BSD (LICENSE)

Dependencies

flutter, flutter_hooks, provider, rxdart

More

Packages that depend on flutter_query