adeptutils 1.0.3

  • Readme
  • Changelog
  • Installing
  • 31

adeptutils #

Adept Utils lib

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[1.0.3] - TODO: Add release date. #

  • TODO: Describe initial release.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  adeptutils: ^1.0.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:adeptutils/adeptutils.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 14, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health issues and suggestions

Fix lib/src/extendables/adept_state.dart. (-43.75 points)

Analysis of lib/src/extendables/adept_state.dart failed with 2 errors:

line 125 col 12: Case expressions must be constant.

line 125 col 30: There is no constant named 'suspending' in 'AppLifecycleState'.

Fix lib/src/extendables/adept_stateless_widget.dart. (-43.75 points)

Analysis of lib/src/extendables/adept_stateless_widget.dart failed with 2 errors:

line 100 col 12: Case expressions must be constant.

line 100 col 30: There is no constant named 'suspending' in 'AppLifecycleState'.

Fix lib/src/dimen_utils.dart. (-25 points)

Analysis of lib/src/dimen_utils.dart reported 78 hints, including:

line 4 col 16: Name non-constant identifiers using lowerCamelCase.

line 5 col 16: Name non-constant identifiers using lowerCamelCase.

line 7 col 16: Name non-constant identifiers using lowerCamelCase.

line 8 col 16: Name non-constant identifiers using lowerCamelCase.

line 9 col 16: Name non-constant identifiers using lowerCamelCase.

Fix additional 39 files with analysis or formatting issues. (-5.47 points)

Additional issues in the following files:

  • lib/src/wrapper/adept_date_time.dart (5 hints)
  • lib/src/wrapper/location.dart (4 hints)
  • lib/src/collections/multi_entry_set.dart (1 hint)
  • lib/src/wrapper/zoned_date_time.dart (1 hint)
  • lib/adeptutils.dart (Run flutter format to format lib/adeptutils.dart.)
  • lib/generated/i18n.dart (Run flutter format to format lib/generated/i18n.dart.)
  • lib/src/build_config.dart (Run flutter format to format lib/src/build_config.dart.)
  • lib/src/collections/collections.dart (Run flutter format to format lib/src/collections/collections.dart.)
  • lib/src/collections/jmap_entry.dart (Run flutter format to format lib/src/collections/jmap_entry.dart.)
  • lib/src/collections/map_builder.dart (Run flutter format to format lib/src/collections/map_builder.dart.)
  • lib/src/collections/multi_key_map.dart (Run flutter format to format lib/src/collections/multi_key_map.dart.)
  • lib/src/collections/queue_set.dart (Run flutter format to format lib/src/collections/queue_set.dart.)
  • lib/src/collections/stack.dart (Run flutter format to format lib/src/collections/stack.dart.)
  • lib/src/color_utils.dart (Run flutter format to format lib/src/color_utils.dart.)
  • lib/src/connection_utils.dart (Run flutter format to format lib/src/connection_utils.dart.)
  • lib/src/date_utils.dart (Run flutter format to format lib/src/date_utils.dart.)
  • lib/src/enumerators/lifecycle_state.dart (Run flutter format to format lib/src/enumerators/lifecycle_state.dart.)
  • lib/src/exception_utils.dart (Run flutter format to format lib/src/exception_utils.dart.)
  • lib/src/extendables/adept_stateful_widget.dart (Run flutter format to format lib/src/extendables/adept_stateful_widget.dart.)
  • lib/src/extendables/jsonable.dart (Run flutter format to format lib/src/extendables/jsonable.dart.)
  • lib/src/input_method_utils.dart (Run flutter format to format lib/src/input_method_utils.dart.)
  • lib/src/intent_utils.dart (Run flutter format to format lib/src/intent_utils.dart.)
  • lib/src/interfaces/click_callback.dart (Run flutter format to format lib/src/interfaces/click_callback.dart.)
  • lib/src/interfaces/ibase.dart (Run flutter format to format lib/src/interfaces/ibase.dart.)
  • lib/src/interfaces/ibasic.dart (Run flutter format to format lib/src/interfaces/ibasic.dart.)
  • lib/src/interfaces/ilifecycle_state.dart (Run flutter format to format lib/src/interfaces/ilifecycle_state.dart.)
  • lib/src/interfaces/iloader.dart (Run flutter format to format lib/src/interfaces/iloader.dart.)
  • lib/src/interfaces/ilocalize.dart (Run flutter format to format lib/src/interfaces/ilocalize.dart.)
  • lib/src/interfaces/item_click_callback.dart (Run flutter format to format lib/src/interfaces/item_click_callback.dart.)
  • lib/src/interfaces/item_long_click_callback.dart (Run flutter format to format lib/src/interfaces/item_long_click_callback.dart.)
  • lib/src/interfaces/iwidget.dart (Run flutter format to format lib/src/interfaces/iwidget.dart.)
  • lib/src/interfaces/long_click_callback.dart (Run flutter format to format lib/src/interfaces/long_click_callback.dart.)
  • lib/src/locale_utils.dart (Run flutter format to format lib/src/locale_utils.dart.)
  • lib/src/package_utils.dart (Run flutter format to format lib/src/package_utils.dart.)
  • lib/src/routes/routes.dart (Run flutter format to format lib/src/routes/routes.dart.)
  • lib/src/screen_utils.dart (Run flutter format to format lib/src/screen_utils.dart.)
  • lib/src/shared_preferences_utils.dart (Run flutter format to format lib/src/shared_preferences_utils.dart.)
  • lib/src/text_utils.dart (Run flutter format to format lib/src/text_utils.dart.)
  • lib/src/wrapper/wrappers.dart (Run flutter format to format lib/src/wrapper/wrappers.dart.)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (fluttertoast, intl).

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

The package description is too short. (-20 points)

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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and adeptutils.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
date_format ^1.0.6 1.0.8
device_info ^0.4.0+4 0.4.2+4
flutter 0.0.0
fluttertoast ^3.1.0 3.1.3 4.0.1
http ^0.12.0+2 0.12.1
intl ^0.15.8 0.15.8 0.16.1
json_annotation ^3.0.0 3.0.1
modal_progress_hud ^0.1.3 0.1.3
package_info ^0.4.0+8 0.4.0+18
shared_preferences ^0.5.3+4 0.5.7+2
url_launcher ^5.2.7 5.4.7
Transitive dependencies
charcode 1.1.3
collection 1.14.12
flutter_web_plugins 0.0.0
http_parser 3.1.4
js 0.6.1+1
meta 1.1.8
path 1.7.0
pedantic 1.9.0
plugin_platform_interface 1.0.2
shared_preferences_macos 0.0.1+8
shared_preferences_platform_interface 1.0.4
shared_preferences_web 0.1.2+5
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
url_launcher_macos 0.0.1+5
url_launcher_platform_interface 1.0.7
url_launcher_web 0.1.1+5
vector_math 2.0.8
Dev dependencies
build_runner ^1.7.1
json_serializable ^3.2.2