supa_architecture 1.0.0 copy "supa_architecture: ^1.0.0" to clipboard
supa_architecture: ^1.0.0 copied to clipboard

Architecture library for Supa Flutter applications

2
likes
110/ 160
pub points
126
downloads

We analyzed this package 12 hours ago, and awarded it 110 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.

Homepage URL doesn't exist.

At the time of the analysis https://github.supa.vn was unreachable. Make sure that the website is reachable via HEAD requests.

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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

890 out of 1177 API elements (75.6 %) have documentation comments.

Some symbols that are missing documentation: api_client, api_client.ApiClient.cookieStorage, api_client.ApiClient.persistentStorage, api_client.ApiClient.secureStorage, app_token.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

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:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_windows/local_auth_windows.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_windows/local_auth_windows.dart that declares support for platforms: Windows.
Package does not support platform `Windows`.

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_darwin/local_auth_darwin.dart that declares support for platforms: iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that declares support for platforms: Android, iOS, Windows, macOS.
Package does not support platform `macOS`.

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_windows/local_auth_windows.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that declares support for platforms: Android, iOS, Windows, macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:supa_architecture/supa_architecture.dart that imports:
  • package:supa_architecture/widgets/widgets.dart that imports:
  • package:supa_architecture/widgets/biometric_login_button.dart that imports:
  • package:local_auth/local_auth.dart that imports:
  • package:local_auth/src/local_auth.dart that imports:
  • package:local_auth_darwin/local_auth_darwin.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.

0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on macOS

It does not contain macos/supa_architecture/Package.swift.

This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.

See https://docs.flutter.dev/to/spm 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 5 issues. Showing the first 2:

INFO: 'alpha' is deprecated and shouldn't be used. Use .a.

lib/extensions/color.dart:14:10

   ╷
14 │       '${alpha.toRadixString(16).padLeft(2, '0')}'
   │          ^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/extensions/color.dart

INFO: 'red' is deprecated and shouldn't be used. Use .r.

lib/extensions/color.dart:15:10

   ╷
15 │       '${red.toRadixString(16).padLeft(2, '0')}'
   │          ^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/extensions/color.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
aad_oauth ^1.0.0 1.0.1 1.0.1
bloc ^8.1.0 8.1.4 8.1.4
build ^2.4.1 2.4.2 2.4.2
cookie_jar ^4.0.0 4.0.8 4.0.8
device_info_plus ^9.0.0 9.1.2 11.2.0
dio ^5.7.0 5.7.0 5.7.0
dio_cookie_manager ^3.1.0 3.1.1 3.1.1
equatable ^2.0.0 2.0.7 2.0.7
file_picker ^8.1.0 8.1.7 8.1.7
firebase_core ^3.6.0 3.9.0 3.9.0
firebase_crashlytics ^4.1.0 4.2.0 4.2.0
firebase_messaging ^15.1.0 15.1.6 15.1.6
firebase_performance ^0.10.0 0.10.0+11 0.10.0+11
flutter flutter 0.0.0 0.0.0
flutter_bloc ^8.1.0 8.1.6 8.1.6
flutter_dotenv ^5.0.0 5.2.1 5.2.1
flutter_secure_storage ^9.2.0 9.2.3 9.2.3
flutter_web_plugins flutter 0.0.0 0.0.0
get_it ^7.7.0 7.7.0 8.0.3
go_router ^14.0.0 14.6.2 14.6.2
google_sign_in ^6.0.0 6.2.2 6.2.2
hive ^2.2.0 2.2.3 2.2.3
hive_flutter ^1.1.0 1.1.0 1.1.0
image_picker ^1.1.0 1.1.2 1.1.2
infinite_scroll_pagination ^4.1.0 4.1.0 4.1.0
injectable ^2.4.0 2.5.0 2.5.0
intl ^0.19.0 0.19.0 0.20.1
json_annotation ^4.9.0 4.9.0 4.9.0
json_serializable ^6.9.0 6.9.0 6.9.2
local_auth ^2.0.0 2.3.0 2.3.0
logging ^1.2.0 1.3.0 1.3.0
package_info_plus ^8.0.0 8.1.2 8.1.2
path ^1.0.0 1.9.0 1.9.1
path_provider ^2.0.0 2.1.5 2.1.5
permission_handler ^11.3.0 11.3.1 11.3.1
plugin_platform_interface ^2.0.0 2.1.8 2.1.8
reactive_forms ^17.0.0 17.0.1 17.0.1
recaptcha_enterprise_flutter ^18.6.0 18.6.1 18.6.1
rxdart ^0.28.0 0.28.0 0.28.0
sentry_flutter ^8.9.0 8.12.0 8.12.0
sign_in_with_apple ^6.0.0 6.1.4 6.1.4
source_gen ^1.5.0 1.5.0 2.0.0
supa_carbon_icons ^0.0.1+4 0.0.1+5 0.0.1+5
url_launcher ^6.0.0 6.3.1 6.3.1
web ^1.0.0 1.1.0 1.1.0
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 76.0.0 78.0.0
_flutterfire_internals - 1.3.48 1.3.48
_macros - 0.3.3 0.3.3
analyzer - 6.11.0 7.1.0
args - 2.6.0 2.6.0
async - 2.11.0 2.12.0
boolean_selector - 2.1.1 2.1.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.1 1.1.2
collection - 1.19.0 1.19.1
convert - 3.1.2 3.1.2
cross_file - 0.3.4+2 0.3.4+2
crypto - 3.0.6 3.0.6
dart_style - 2.3.7 3.0.1
dartz - 0.10.1 0.10.1
device_info_plus_platform_interface - 7.0.2 7.0.2
dio_web_adapter - 2.0.0 2.0.0
fake_async - 1.3.1 1.3.2
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
file_selector_linux - 0.9.3+2 0.9.3+2
file_selector_macos - 0.9.4+2 0.9.4+2
file_selector_platform_interface - 2.6.2 2.6.2
file_selector_windows - 0.9.3+3 0.9.3+3
firebase_core_platform_interface - 5.4.0 5.4.0
firebase_core_web - 2.19.0 2.19.0
firebase_crashlytics_platform_interface - 3.7.0 3.7.0
firebase_messaging_platform_interface - 4.5.49 4.5.49
firebase_messaging_web - 3.9.5 3.9.5
firebase_performance_platform_interface - 0.1.4+47 0.1.4+47
firebase_performance_web - 0.1.7+5 0.1.7+5
fixnum - 1.1.1 1.1.1
flutter_localizations - 0.0.0 0.0.0
flutter_plugin_android_lifecycle - 2.0.24 2.0.24
flutter_secure_storage_linux - 1.2.2 1.2.2
flutter_secure_storage_macos - 3.1.3 3.1.3
flutter_secure_storage_platform_interface - 1.1.2 2.0.0
flutter_secure_storage_web - 1.2.1 1.2.1
flutter_secure_storage_windows - 3.1.2 4.0.0
flutter_staggered_grid_view - 0.7.0 0.7.0
flutter_test - 0.0.0 0.0.0
glob - 2.1.2 2.1.2
google_identity_services_web - 0.3.3 0.3.3
google_sign_in_android - 6.1.34 6.1.34
google_sign_in_ios - 5.7.8 5.7.8
google_sign_in_platform_interface - 2.4.5 2.4.5
google_sign_in_web - 0.12.4+3 0.12.4+3
http - 1.2.2 1.2.2
http_parser - 4.1.2 4.1.2
image_picker_android - 0.8.12+19 0.8.12+19
image_picker_for_web - 3.0.6 3.0.6
image_picker_ios - 0.8.12+2 0.8.12+2
image_picker_linux - 0.2.1+1 0.2.1+1
image_picker_macos - 0.2.1+1 0.2.1+1
image_picker_platform_interface - 2.10.0 2.10.0
image_picker_windows - 0.2.1+1 0.2.1+1
js - 0.6.7 0.7.1
leak_tracker - 10.0.7 10.0.8
leak_tracker_flutter_testing - 3.0.8 3.0.9
leak_tracker_testing - 3.0.1 3.0.1
local_auth_android - 1.0.46 1.0.46
local_auth_darwin - 1.4.2 1.4.2
local_auth_platform_interface - 1.0.10 1.0.10
local_auth_windows - 1.0.11 1.0.11
macros - 0.1.3-main.0 0.1.3-main.0
matcher - 0.12.16+1 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
mime - 2.0.0 2.0.0
nested - 1.0.0 1.0.0
package_config - 2.1.1 2.1.1
package_info_plus_platform_interface - 3.0.2 3.0.2
path_provider_android - 2.2.15 2.2.15
path_provider_foundation - 2.4.1 2.4.1
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
platform - 3.1.6 3.1.6
provider - 6.1.2 6.1.2
pub_semver - 2.1.5 2.1.5
pubspec_parse - 1.4.0 1.4.0
sentry - 8.12.0 8.12.0
shared_preferences - 2.3.5 2.3.5
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
sign_in_with_apple_platform_interface - 1.1.0 1.1.0
sign_in_with_apple_web - 2.1.1 2.1.1
sky_engine - 0.0.0 0.0.0
sliver_tools - 0.2.12 0.2.12
source_helper - 1.3.5 1.3.5
source_span - 1.10.0 1.10.1
sprintf - 7.0.0 7.0.0
stack_trace - 1.12.0 1.12.1
stream_channel - 2.1.2 2.1.3
string_scanner - 1.3.0 1.4.1
term_glyph - 1.2.1 1.2.2
test_api - 0.7.3 0.7.4
typed_data - 1.4.0 1.4.0
universal_io - 2.2.2 2.2.2
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
uuid - 4.5.1 4.5.1
vector_math - 2.1.4 2.1.4
vm_service - 14.3.0 15.0.0
watcher - 1.1.1 1.1.1
webview_flutter - 4.10.0 4.10.0
webview_flutter_android - 4.2.0 4.2.0
webview_flutter_platform_interface - 2.10.0 2.10.0
webview_flutter_wkwebview - 3.16.3 3.16.3
win32 - 5.10.0 5.10.0
win32_registry - 1.1.5 2.0.1
xdg_directories - 1.1.0 1.1.0
yaml - 3.1.3 3.1.3

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

Found 4 issues. Showing the first 2:

The constraint `^9.0.0` on device_info_plus does not support the stable version `10.0.0`.

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

The constraint `^7.7.0` on get_it does not support the stable version `8.0.0`.

Try running dart pub upgrade --major-versions get_it 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 3 errors:

  • URI_DOES_NOT_EXIST - lib/services/file_service.dart:3:8 - Target of URI doesn't exist: 'package:url_launcher/url_launcher_string.dart'.
  • UNDEFINED_METHOD - lib/services/file_service.dart:92:15 - The method 'canLaunchUrlString' isn't defined for the type 'FileService'.
  • UNDEFINED_METHOD - lib/services/file_service.dart:93:13 - The method 'launchUrlString' isn't defined for the type 'FileService'.

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.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.