nutrition_ai_module 3.1.0 copy "nutrition_ai_module: ^3.1.0" to clipboard
nutrition_ai_module: ^3.1.0 copied to clipboard

Passio Nutrition AI Module for Flutter. Supports Android and iOS.

4
likes
90/ 160
pub points
97
downloads

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

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

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

OK
Provide documentation
20 / 20trigger folding of the section

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

650 out of 768 API elements (84.6 %) have documentation comments.

Some symbols that are missing documentation: nutrition_ai_module, nutrition_ai_module.Conversion, nutrition_ai_module.FoodRecord.getCreatedAt, nutrition_ai_module.FoodRecord.openFoodLicense, nutrition_ai_module.FoodRecord.setCreatedAt.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/units_for_profile_widget.dart that imports:
  • package:nutrition_ai_module/src/common/models/user_profile/user_profile_model.dart that imports:
  • package:nutrition_ai/nutrition_ai.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/units_for_profile_widget.dart that imports:
  • package:nutrition_ai_module/src/common/models/user_profile/user_profile_model.dart that imports:
  • package:nutrition_ai/nutrition_ai.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/units_for_profile_widget.dart that imports:
  • package:nutrition_ai_module/src/common/models/user_profile/user_profile_model.dart that imports:
  • package:nutrition_ai/nutrition_ai.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/widgets/units_for_profile_widget.dart that imports:
  • package:nutrition_ai_module/src/common/models/user_profile/user_profile_model.dart that imports:
  • package:nutrition_ai/nutrition_ai.dart that declares support for platforms: Android, iOS.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/bloc/settings_bloc.dart that imports:
  • package:nutrition_ai_module/src/common/util/local_notification_manager.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:nutrition_ai_module/nutrition_ai_module.dart that imports:
  • package:nutrition_ai_module/src/nutrition_ai_module_sdk.dart that imports:
  • package:nutrition_ai_module/src/pages/dashboard/dashboard_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/progress_page.dart that imports:
  • package:nutrition_ai_module/src/pages/progress/widgets/widgets.dart that imports:
  • package:nutrition_ai_module/src/common/widgets/custom_app_bar_widget.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/settings_page.dart that imports:
  • package:nutrition_ai_module/src/pages/settings/bloc/settings_bloc.dart that imports:
  • package:nutrition_ai_module/src/common/util/local_notification_manager.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart that declares support for platforms: Linux.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

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

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 19 issues. Showing the first 2:

ERROR: The named parameter 'refCode' is required, but there's no corresponding argument.

lib/src/pages/food_search/bloc/food_search_bloc.dart:43:28

   ╷
43 │           (index) => const PassioFoodDataInfo(
   │                            ^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/pages/food_search/bloc/food_search_bloc.dart

ERROR: The named parameter 'tags' is required, but there's no corresponding argument.

lib/src/pages/food_search/bloc/food_search_bloc.dart:43:28

   ╷
43 │           (index) => const PassioFoodDataInfo(
   │                            ^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/pages/food_search/bloc/food_search_bloc.dart

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

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

Package Constraint Compatible Latest
equatable ^2.0.5 2.0.7 2.0.7
flutter flutter 0.0.0 0.0.0
flutter_bloc ^8.1.5 8.1.6 8.1.6
flutter_local_notifications ^17.1.2 17.2.4 18.0.1
flutter_screenutil ^5.9.3 5.9.3 5.9.3
flutter_slidable ^3.1.0 3.1.2 3.1.2
flutter_speed_dial ^7.0.0 7.0.0 7.0.0
flutter_svg ^2.0.10+1 2.0.16 2.0.16
flutter_timezone ^1.0.8 1.0.8 4.0.0
get_it ^7.7.0 7.7.0 8.0.3
intl ^0.19.0 0.19.0 0.20.1
json_annotation ^4.9.0 4.9.0 4.9.0
json_serializable ^6.8.0 6.9.2 6.9.2
loading_indicator ^3.1.1 3.1.1 3.1.1
nutrition_ai ^3.1.0 3.2.3 3.2.3
path ^1.9.0 1.9.1 1.9.1
permission_handler ^11.3.1 11.3.1 11.3.1
shared_preferences ^2.2.3 2.3.4 2.3.4
shimmer ^3.0.0 3.0.0 3.0.0
simple_gesture_detector ^0.2.1 0.2.1 0.2.1
sqflite ^2.3.3+1 2.4.1 2.4.1
syncfusion_flutter_charts ^25.2.7 25.2.7 28.1.36
timezone ^0.9.3 0.9.4 0.10.0
url_launcher ^6.3.0 6.3.1 6.3.1
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 78.0.0 78.0.0
_macros - 0.3.3 0.3.3
analyzer - 7.1.0 7.1.0
args - 2.6.0 2.6.0
async - 2.12.0 2.12.0
bloc - 8.1.4 8.1.4
build - 2.4.2 2.4.2
build_config - 1.1.2 1.1.2
characters - 1.3.0 1.4.0
checked_yaml - 2.0.3 2.0.3
clock - 1.1.2 1.1.2
collection - 1.19.0 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
dart_style - 3.0.1 3.0.1
dbus - 0.7.10 0.7.10
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
flutter_local_notifications_linux - 4.0.1 5.0.0
flutter_local_notifications_platform_interface - 7.2.0 8.0.0
flutter_web_plugins - 0.0.0 0.0.0
glob - 2.1.2 2.1.2
http - 1.2.2 1.2.2
http_parser - 4.1.1 4.1.1
js - 0.7.1 0.7.1
logging - 1.3.0 1.3.0
macros - 0.1.3-main.0 0.1.3-main.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
package_config - 2.1.1 2.1.1
path_parsing - 1.1.0 1.1.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
permission_handler_android - 12.0.13 12.0.13
permission_handler_apple - 9.4.5 9.4.5
permission_handler_html - 0.1.3+5 0.1.3+5
permission_handler_platform_interface - 4.2.3 4.2.3
permission_handler_windows - 0.2.1 0.2.1
petitparser - 6.0.2 6.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
provider - 6.1.2 6.1.2
pub_semver - 2.1.5 2.1.5
pubspec_parse - 1.4.0 1.4.0
shared_preferences_android - 2.4.0 2.4.0
shared_preferences_foundation - 2.5.4 2.5.4
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
sky_engine - 0.0.0 0.0.0
source_gen - 2.0.0 2.0.0
source_helper - 1.3.5 1.3.5
source_span - 1.10.1 1.10.1
sqflite_android - 2.4.0 2.4.0
sqflite_common - 2.5.4+6 2.5.4+6
sqflite_darwin - 2.4.1 2.4.1
sqflite_platform_interface - 2.4.0 2.4.0
string_scanner - 1.4.1 1.4.1
syncfusion_flutter_core - 25.2.7 28.1.36
synchronized - 3.3.0+3 3.3.0+3
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
url_launcher_android - 6.3.14 6.3.14
url_launcher_ios - 6.3.2 6.3.2
url_launcher_linux - 3.2.1 3.2.1
url_launcher_macos - 3.2.2 3.2.2
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.3.3 2.3.3
url_launcher_windows - 3.1.3 3.1.3
vector_graphics - 1.1.15 1.1.15
vector_graphics_codec - 1.1.12 1.1.12
vector_graphics_compiler - 1.1.16 1.1.16
vector_math - 2.1.4 2.1.4
watcher - 1.1.1 1.1.1
web - 1.1.0 1.1.0
xdg_directories - 1.1.0 1.1.0
xml - 6.5.0 6.5.0
yaml - 3.1.3 3.1.3

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

Found 6 issues. Showing the first 2:

The constraint `^17.1.2` on flutter_local_notifications does not support the stable version `18.0.0`.

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

The constraint `^1.0.8` on flutter_timezone does not support the stable version `2.0.0`.

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.