base_utils 0.0.23

  • README.md
  • Installing
  • Versions
  • 53

base_utils #

A new flutter package project.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Use this package as a library

1. Depend on it

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


dependencies:
  base_utils: ^0.0.23

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:base_utils/base/base.dart';
import 'package:base_utils/base/dialog_manager.dart';
import 'package:base_utils/base/lifecycle.dart';
import 'package:base_utils/base/system_lifecycle_listener.dart';
import 'package:base_utils/bloc/base_bloc.dart';
import 'package:base_utils/bloc/bloc_providers.dart';
import 'package:base_utils/model/device.dart';
import 'package:base_utils/model/merchant.dart';
import 'package:base_utils/model/rest.dart';
import 'package:base_utils/native_methods.dart';
import 'package:base_utils/network/http_utils.dart';
import 'package:base_utils/network/service.dart';
import 'package:base_utils/network/user_service.dart';
import 'package:base_utils/notifications/notifications.dart';
import 'package:base_utils/router/router.dart';
import 'package:base_utils/share_preference/share_preference_manager.dart';
import 'package:base_utils/sound/sound_manager.dart';
import 'package:base_utils/ui/animation_widget.dart';
import 'package:base_utils/ui/base_list_widget.dart';
import 'package:base_utils/ui/dash.dart';
import 'package:base_utils/ui/error_loading.dart';
import 'package:base_utils/ui/network_aware_state.dart';
import 'package:base_utils/ui/res/colors.dart';
import 'package:base_utils/ui/res/dimens.dart';
import 'package:base_utils/ui/res/images.dart';
import 'package:base_utils/ui/res/strings.dart';
import 'package:base_utils/ui/restart_widget.dart';
import 'package:base_utils/ui/scaless_text.dart';
import 'package:base_utils/utils/color_utils.dart';
import 'package:base_utils/utils/currency_format.dart';
import 'package:base_utils/utils/date_utils.dart';
import 'package:base_utils/utils/encryption_utils.dart';
import 'package:base_utils/utils/logging_utils.dart';
import 'package:base_utils/utils/map_utils.dart';
import 'package:base_utils/utils/number_utils.dart';
import 'package:base_utils/utils/sendo_page_route.dart';
import 'package:base_utils/utils/string_utils.dart';
import 'package:base_utils/utils/system_utils.dart';
import 'package:base_utils/utils/theme_utils.dart';
import 'package:base_utils/utils/uri_utils.dart';
import 'package:base_utils/utils/widget_utils.dart';
import 'package:base_utils/video/chewie.dart';
import 'package:base_utils/video/chewie_player.dart';
import 'package:base_utils/video/chewie_progress_colors.dart';
import 'package:base_utils/video/cupertino_controls.dart';
import 'package:base_utils/video/cupertino_progress_bar.dart';
import 'package:base_utils/video/material_controls.dart';
import 'package:base_utils/video/material_progress_bar.dart';
import 'package:base_utils/video/player_with_controls.dart';
import 'package:base_utils/video/user_control_event.dart';
import 'package:base_utils/video/utils.dart';
import 'package:base_utils/widgets/html_widget/basic_html_widget.dart';
import 'package:base_utils/widgets/html_widget/html_widget.dart';
import 'package:base_utils/widgets/html_widget/html_widget_config.dart';
import 'package:base_utils/widgets/html_widget/html_widget_factory.dart';
import 'package:base_utils/widgets/html_widget/ops/tag_a.dart';
import 'package:base_utils/widgets/html_widget/ops/tag_li.dart';
  
Version Uploaded Documentation Archive
0.0.23 May 9, 2019 Go to the documentation of base_utils 0.0.23 Download base_utils 0.0.23 archive
0.0.22+1 Apr 16, 2019 Go to the documentation of base_utils 0.0.22+1 Download base_utils 0.0.22+1 archive
0.0.22 Apr 10, 2019 Go to the documentation of base_utils 0.0.22 Download base_utils 0.0.22 archive
0.0.21+2 Mar 24, 2019 Go to the documentation of base_utils 0.0.21+2 Download base_utils 0.0.21+2 archive
0.0.21 Mar 24, 2019 Go to the documentation of base_utils 0.0.21 Download base_utils 0.0.21 archive
0.0.20 Mar 13, 2019 Go to the documentation of base_utils 0.0.20 Download base_utils 0.0.20 archive
0.0.19 Mar 12, 2019 Go to the documentation of base_utils 0.0.19 Download base_utils 0.0.19 archive
0.0.18 Feb 28, 2019 Go to the documentation of base_utils 0.0.18 Download base_utils 0.0.18 archive
0.0.17 Feb 27, 2019 Go to the documentation of base_utils 0.0.17 Download base_utils 0.0.17 archive
0.0.16 Feb 25, 2019 Go to the documentation of base_utils 0.0.16 Download base_utils 0.0.16 archive

All 23 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
63
Health:
Code health derived from static analysis. [more]
65
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
8
Overall:
Weighted score of the above. [more]
53
Learn more about scoring.

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

  • Dart: 2.3.1
  • pana: 0.12.17
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Fix lib/notifications/notifications.dart. (-25.38 points)

Analysis of lib/notifications/notifications.dart failed with 1 error, 1 hint:

line 38 col 33: Too many positional arguments: 1 expected, but 2 found.

line 31 col 3: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

Fix lib/router/router.dart. (-1.99 points)

Analysis of lib/router/router.dart reported 4 hints:

line 31 col 17: Name non-constant identifiers using lowerCamelCase.

line 32 col 17: Name non-constant identifiers using lowerCamelCase.

line 33 col 17: Name non-constant identifiers using lowerCamelCase.

line 246 col 35: Avoid using braces in interpolation when not needed.

Fix lib/share_preference/share_preference_manager.dart. (-1.49 points)

Analysis of lib/share_preference/share_preference_manager.dart reported 3 hints:

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

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

line 13 col 10: The class 'Future' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.

Fix additional 22 files with analysis or formatting issues. (-10.98 points)

Additional issues in the following files:

  • lib/ui/animation_widget.dart (3 hints)
  • lib/utils/widget_utils.dart (3 hints)
  • lib/bloc/bloc_providers.dart (2 hints)
  • lib/model/merchant.dart (2 hints)
  • lib/ui/scaless_text.dart (2 hints)
  • lib/utils/string_utils.dart (2 hints)
  • lib/native_methods.dart (1 hint)
  • lib/network/service.dart (1 hint)
  • lib/network/user_service.dart (1 hint)
  • lib/sound/sound_manager.dart (1 hint)
  • lib/ui/base_list_widget.dart (1 hint)
  • lib/ui/error_loading.dart (1 hint)
  • lib/utils/encryption_utils.dart (1 hint)
  • lib/video/chewie_player.dart (1 hint)
  • lib/bloc/base_bloc.dart (Run flutter format to format lib/bloc/base_bloc.dart.)
  • lib/utils/number_utils.dart (Run flutter format to format lib/utils/number_utils.dart.)
  • lib/utils/uri_utils.dart (Run flutter format to format lib/utils/uri_utils.dart.)
  • lib/video/user_control_event.dart (Run flutter format to format lib/video/user_control_event.dart.)
  • lib/widgets/html_widget/basic_html_widget.dart (Run flutter format to format lib/widgets/html_widget/basic_html_widget.dart.)
  • lib/widgets/html_widget/html_widget.dart (Run flutter format to format lib/widgets/html_widget/html_widget.dart.)
  • lib/widgets/html_widget/html_widget_factory.dart (Run flutter format to format lib/widgets/html_widget/html_widget_factory.dart.)
  • lib/widgets/html_widget/ops/tag_a.dart (Run flutter format to format lib/widgets/html_widget/ops/tag_a.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: flutter_advanced_networkimage.

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

At the time of the analysis the homepage field https://www.flutter.io was unreachable.

The package description is too short. (-12 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 base_utils.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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
audioplayers ^0.7.8 0.7.8 0.12.1
cached_network_image ^0.4.2 0.4.2 0.8.0
clone_local_notifications ^0.0.3 0.0.4
connectivityswift ^0.0.4 0.0.4
core_plugin ^0.2.5 0.2.14
cupertino_icons ^0.1.2 0.1.2
device_info ^0.2.1 0.2.1 0.4.0+2
flutter 0.0.0
flutter_add_calendar 0.0.4 0.0.4
flutter_advanced_networkimage any 0.3.8 0.4.15
flutter_html ^0.8.2 0.8.2 0.10.1+hotfix.1
flutter_staggered_grid_view ^0.2.2 0.2.7 0.3.0
flutter_svg ^0.6.0 0.6.3 0.13.0+2
flutter_widget_from_html_core ^0.1.3 0.1.5 0.2.1+1
flutter_youtube_extractor ^0.0.8 0.0.8
html ^0.13.3 0.13.4+2 0.14.0+2
http ^0.11.3 0.11.3+17 0.12.0+2
image ^2.0.7 2.1.4
intl ^0.15.7 0.15.8
open_iconic_flutter >=0.3.0 <0.4.0 0.3.0
rect_getter ^0.0.1 0.0.1
rxdart ^0.18.1 0.18.1 0.22.0
settings ^0.0.4 0.0.4
shimmer ^0.0.5 0.0.6 1.0.0
url_launcher ^4.0.0 4.2.0+3 5.0.3
video_player >=0.6.0 <0.7.0 0.6.5 0.10.1+3
Transitive dependencies
archive 2.0.10
args 1.5.2
async 2.2.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.15.0 0.16.0
flutter_cache_manager 0.1.2 0.3.2
http_parser 3.1.3
meta 1.1.6 1.1.7
path 1.6.2
path_drawing 0.4.1
path_parsing 0.1.4
path_provider 0.4.1 1.1.0
petitparser 2.2.1 2.3.0
platform 2.2.0
shared_preferences 0.4.3 0.5.3+1
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.4
synchronized 1.5.3+2 2.1.0
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
uuid 1.0.3 2.0.2
vector_math 2.0.8
xml 3.4.1 3.5.0