d2_touch 1.1.7 copy "d2_touch: ^1.1.7" to clipboard
d2_touch: ^1.1.7 copied to clipboard

DHIS2 Flutter SDK

7
likes
90/ 160
pub points
27%
popularity

We analyzed this package 3 days ago, and awarded it 90 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

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

10/10 points: Use an OSI-approved license

Detected license: LGPL-3.0.

failed
Provide documentation
0 / 20trigger folding of the section

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

110 out of 1706 API elements (6.4 %) 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.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: aggregate.module, aggregate.module.AggregateModule, aggregate.module.AggregateModule.AggregateModule, aggregate.module.AggregateModule.createTables, aggregate.module.AggregateModule.dataValue.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:d2_touch/d2_touch.dart that imports:
  • package:d2_touch/modules/metadata/data_element/data_element.module.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:d2_touch/d2_touch.dart that imports:
  • package:d2_touch/modules/metadata/data_element/data_element.module.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Web`.

Because:

  • package:d2_touch/d2_touch.dart that imports:
  • package:d2_touch/modules/metadata/data_element/data_element.module.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:d2_touch/d2_touch.dart that imports:
  • package:d2_touch/modules/metadata/data_element/data_element.module.dart that imports:
  • package:d2_touch/modules/metadata/data_element/queries/data_element.query.dart that imports:
  • package:d2_touch/shared/queries/base.query.dart that imports:
  • package:d2_touch/shared/utilities/http_client.util.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 51 issues. Showing the first 2:

INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.

lib/core/utilities/query_expression.dart:38:41

   ╷
38 │     final String foreignKeyExpression = foreignKeyContraints.length > 0
   │                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/core/utilities/query_expression.dart

INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.

lib/core/utilities/query_expression.dart:42:9

   ╷
42 │         referencedCreateTableExpressions.length > 0
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/core/utilities/query_expression.dart

failed
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest
async ^2.8.2 2.12.0 2.12.0
dio ^5.1.1 5.7.0 5.7.0
expressions ^0.2.3 0.2.5+2 0.2.5+2
flutter flutter 0.0.0 0.0.0
http ^0.13.4 0.13.6 1.2.2
http_parser ^4.0.1 4.0.2 4.1.1
intl ^0.18.1 0.18.1 0.20.0
math_expressions ^2.5.0 2.6.0 2.6.0
mime ^1.0.2 1.0.6 2.0.0
path ^1.8.0 1.9.1 1.9.1
path_provider ^2.0.8 2.1.5 2.1.5
petitparser ^6.0.2 6.0.2 6.0.2
queue ^3.1.0+2 3.1.0+2 3.1.0+2
reflectable ^4.0.5 4.0.10 4.0.12
shared_preferences ^2.0.11 2.3.3 2.3.3
sqflite ^2.0.1 2.4.1 2.4.1
sqflite_common_ffi ^2.1.0 2.3.4 2.3.4
xml2json ^5.3.2 5.3.6 6.2.5
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 72.0.0 76.0.0
_macros - 0.3.2 0.3.2
analyzer - 6.7.0 6.11.0
args - 2.6.0 2.6.0
boolean_selector - 2.1.2 2.1.2
build - 2.4.1 2.4.1
build_config - 1.1.1 1.1.1
build_daemon - 4.0.2 4.0.2
build_resolvers - 2.4.2 2.4.2
build_runner - 2.4.13 2.4.13
build_runner_core - 7.3.2 7.3.2
built_collection - 5.1.1 5.1.1
built_value - 8.9.2 8.9.2
characters - 1.3.0 1.3.1
checked_yaml - 2.0.3 2.0.3
clock - 1.1.2 1.1.2
code_builder - 4.10.1 4.10.1
collection - 1.18.0 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
dart_style - 2.3.7 2.3.7
dio_web_adapter - 2.0.0 2.0.0
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
flutter_web_plugins - 0.0.0 0.0.0
frontend_server_client - 4.0.0 4.0.0
glob - 2.1.2 2.1.2
graphs - 2.3.2 2.3.2
http_multi_server - 3.2.1 3.2.1
io - 1.0.4 1.0.4
js - 0.7.1 0.7.1
json_annotation - 4.9.0 4.9.0
logging - 1.3.0 1.3.0
macros - 0.1.2-main.4 0.1.3-main.0
matcher - 0.12.17 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
package_config - 2.1.0 2.1.0
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
pool - 1.5.1 1.5.1
pub_semver - 2.1.4 2.1.4
pubspec_parse - 1.3.0 1.3.0
quiver - 3.2.2 3.2.2
rxdart - 0.28.0 0.28.0
shared_preferences_android - 2.3.3 2.3.3
shared_preferences_foundation - 2.5.3 2.5.3
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.2 2.4.2
shared_preferences_windows - 2.4.1 2.4.1
shelf - 1.4.1 1.4.2
shelf_web_socket - 2.0.0 2.0.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
sqflite_android - 2.4.0 2.4.0
sqflite_common - 2.5.4+5 2.5.4+5
sqflite_darwin - 2.4.1 2.4.1
sqflite_platform_interface - 2.4.0 2.4.0
sqlite3 - 2.4.7 2.4.7
stack_trace - 1.12.0 1.12.0
stream_channel - 2.1.2 2.1.2
stream_transform - 2.1.0 2.1.0
string_scanner - 1.4.0 1.4.0
synchronized - 3.3.0+3 3.3.0+3
term_glyph - 1.2.1 1.2.1
test_api - 0.7.3 0.7.3
timing - 1.0.1 1.0.1
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
watcher - 1.1.0 1.1.0
web - 1.1.0 1.1.0
web_socket - 0.1.6 0.1.6
web_socket_channel - 3.0.1 3.0.1
xdg_directories - 1.1.0 1.1.0
xml - 6.5.0 6.5.0
yaml - 3.1.2 3.1.2

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

Found 4 issues. Showing the first 2:

The constraint `^0.13.4` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http to update the constraint.

The constraint `^0.18.1` on intl does not support the stable version `0.19.0`.

Try running dart pub upgrade --major-versions intl to update the constraint.

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 4 errors:

  • NON_TYPE_IN_CATCH_CLAUSE - lib/shared/utilities/http-details.util.dart:43:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.
  • NON_TYPE_IN_CATCH_CLAUSE - lib/shared/utilities/http_client.util.dart:67:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.
  • NON_TYPE_IN_CATCH_CLAUSE - lib/shared/utilities/http_client.util.dart:110:10 - The name 'DioException' isn't a type and can't be used in an on-catch clause.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.