flutter_base_lib 0.0.1

  • Readme
  • Changelog
  • Installing
  • 30

flutter_base_lib #

A Flutter base tools lib package.

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.

[0.0.1] - 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:

  flutter_base_lib: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support 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:flutter_base_lib/flutter_base_lib.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 Jul 5, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [flutter_base_lib] that is in a package requiring null.

Health suggestions

Fix lib/widgets/take_photo_view.dart. (-1.49 points)

Analysis of lib/widgets/take_photo_view.dart reported 3 hints:

line 15 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: TakePhotoView.isSelected

line 110 col 32: 'pickVideo' is deprecated and shouldn't be used. Use imagePicker.getVideo() method instead..

line 112 col 32: 'pickImage' is deprecated and shouldn't be used. Use imagePicker.getImage() method instead..

Fix lib/widgets/preview_photo_page.dart. (-1 points)

Analysis of lib/widgets/preview_photo_page.dart reported 2 hints:

line 3 col 8: Unused import: 'infos_display_view.dart'.

line 21 col 7: The value of the field '_pageIndex' isn't used.

Fix lib/datasource/cache/global_cache.dart. (-0.50 points)

Analysis of lib/datasource/cache/global_cache.dart reported 1 hint:

line 6 col 29: The value of the field '_prefs' isn't used.

Fix additional 13 files with analysis or formatting issues. (-3 points)

Additional issues in the following files:

  • lib/datasource/http/net.dart (1 hint)
  • lib/themes/theme_setting.dart (1 hint)
  • lib/widgets/custom_text_field.dart (1 hint)
  • lib/widgets/dot_indicator.dart (1 hint)
  • lib/widgets/prepare_view.dart (1 hint)
  • lib/widgets/video_module_widget.dart (1 hint)
  • lib/datasource/http/base_task.dart (Run flutter format to format lib/datasource/http/base_task.dart.)
  • lib/themes/theme_provider.dart (Run flutter format to format lib/themes/theme_provider.dart.)
  • lib/utils/date_utils.dart (Run flutter format to format lib/utils/date_utils.dart.)
  • lib/utils/map_utils.dart (Run flutter format to format lib/utils/map_utils.dart.)
  • lib/utils/regex_utils.dart (Run flutter format to format lib/utils/regex_utils.dart.)
  • lib/utils/state_utils.dart (Run flutter format to format lib/utils/state_utils.dart.)
  • lib/utils/toast.dart (Run flutter format to format lib/utils/toast.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (dio, permission_handler, provider).

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/orliu/flutter_base_lib was unreachable.

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 flutter_base_lib.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
device_info ^0.4.0+2 0.4.2+4
dio ^2.1.0 2.2.2 3.0.9
flutter 0.0.0
image_picker ^0.6.1+4 0.6.7+3
package_info ^0.4.0+6 0.4.1
path_provider ^1.2.0 1.6.11
permission_handler ^3.2.2 3.3.0 5.0.1+1
provider ^3.1.0 3.2.0 4.1.3+1
shared_preferences ^0.5.1+1 0.5.7+3
sqflite ^1.1.6+4 1.3.1
video_player ^0.10.2 0.10.11+2
Transitive dependencies
charcode 1.1.3
collection 1.14.12 1.14.13
cookie_jar 1.0.1
file 5.2.1
flutter_plugin_android_lifecycle 1.0.8
flutter_web_plugins 0.0.0
http 0.12.1
http_parser 3.1.4
image_picker_platform_interface 1.1.0
intl 0.16.1
meta 1.1.8
path 1.7.0
path_provider_linux 0.0.1+2
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
pedantic 1.9.0 1.9.1
platform 2.2.1
plugin_platform_interface 1.0.2
process 3.0.13
shared_preferences_macos 0.0.1+10
shared_preferences_platform_interface 1.0.4
shared_preferences_web 0.1.2+7
sky_engine 0.0.99
source_span 1.7.0
sqflite_common 1.0.2+1
string_scanner 1.0.5
synchronized 2.2.0+1
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8
video_player_platform_interface 2.0.2
video_player_web 0.1.3+2
xdg_directories 0.1.0
Dev dependencies