base_utils 0.0.15

  • README.md
  • Installing
  • Versions
  • 56

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.15

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages 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/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/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/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/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/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';
  
Version Uploaded Documentation Archive
0.0.15 Feb 12, 2019 Go to the documentation of base_utils 0.0.15 Download base_utils 0.0.15 archive
0.0.14 Jan 28, 2019 Go to the documentation of base_utils 0.0.14 Download base_utils 0.0.14 archive
0.0.11 Oct 23, 2018 Go to the documentation of base_utils 0.0.11 Download base_utils 0.0.11 archive
0.0.10 Oct 20, 2018 Go to the documentation of base_utils 0.0.10 Download base_utils 0.0.10 archive
0.0.9 Oct 11, 2018 Go to the documentation of base_utils 0.0.9 Download base_utils 0.0.9 archive
0.0.8 Oct 10, 2018 Go to the documentation of base_utils 0.0.8 Download base_utils 0.0.8 archive
0.0.7 Oct 10, 2018 Go to the documentation of base_utils 0.0.7 Download base_utils 0.0.7 archive
0.0.6 Oct 10, 2018 Go to the documentation of base_utils 0.0.6 Download base_utils 0.0.6 archive
0.0.5 Oct 10, 2018 Go to the documentation of base_utils 0.0.5 Download base_utils 0.0.5 archive
0.0.4 Oct 10, 2018 Go to the documentation of base_utils 0.0.4 Download base_utils 0.0.4 archive

All 13 versions...

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

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

  • Dart: 2.1.0
  • pana: 0.12.13+1
  • Flutter: 1.2.1

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/utils/widget_utils.dart. (-1.49 points)

Analysis of lib/utils/widget_utils.dart reported 3 hints:

line 255 col 1: 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.

line 316 col 1: Prefer using /// for doc comments.

line 323 col 1: Prefer using /// for doc comments.

Fix lib/bloc/bloc_providers.dart. (-1 points)

Analysis of lib/bloc/bloc_providers.dart reported 2 hints:

line 18 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: BlocProvider.bloc, BlocProvider.builder

line 31 col 10: This function has a return type of 'T', but doesn't end with a return statement.

Fix lib/model/merchant.dart. (-1 points)

Analysis of lib/model/merchant.dart reported 2 hints:

line 166 col 1: Prefer using /// for doc comments.

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

Fix additional 14 files with analysis or formatting issues. (-5 points)

Additional issues in the following files:

  • lib/ui/animation_widget.dart (2 hints)
  • lib/ui/scaless_text.dart (2 hints)
  • lib/native_methods.dart (1 hint)
  • lib/network/service.dart (1 hint)
  • lib/ui/error_loading.dart (1 hint)
  • lib/utils/encryption_utils.dart (1 hint)
  • lib/utils/string_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/sound/sound_manager.dart (Run flutter format to format lib/sound/sound_manager.dart.)
  • lib/ui/network_aware_state.dart (Run flutter format to format lib/ui/network_aware_state.dart.)
  • lib/utils/currency_format.dart (Run flutter format to format lib/utils/currency_format.dart.)
  • lib/utils/number_utils.dart (Run flutter format to format lib/utils/number_utils.dart.)
  • lib/video/user_control_event.dart (Run flutter format to format lib/video/user_control_event.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.

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.8.2
connectivityswift ^0.0.4 0.0.4
core_plugin ^0.2.5 0.2.10
cupertino_icons ^0.1.2 0.1.2
device_info ^0.2.1 0.2.1 0.4.0+1
flutter 0.0.0
flutter_add_calendar 0.0.3 0.0.3
flutter_advanced_networkimage any 0.3.8 0.4.8
flutter_html ^0.8.2 0.8.2 0.9.4
flutter_svg ^0.6.0 0.6.3 0.10.3
flutter_youtube_extractor ^0.0.8 0.0.8
html ^0.13.3 0.13.3+3
http ^0.11.3 0.11.3+17 0.12.0+1
intl ^0.15.7 0.15.7
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.20.0
settings ^0.0.4 0.0.4
shimmer ^0.0.5 0.0.6 1.0.0
video_player >=0.6.0 <0.7.0 0.6.5 0.10.0+2
Transitive dependencies
args 1.5.1
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.14.6
http_parser 3.1.3
logging 0.11.3+2
meta 1.1.6 1.1.7
path 1.6.2
path_drawing 0.4.0
path_parsing 0.1.3
path_provider 0.4.1 0.5.0+1
petitparser 2.1.1
shared_preferences 0.4.3 0.5.1+1
sky_engine 0.0.99
source_span 1.5.4
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
utf 0.9.0+5
uuid 1.0.3 2.0.0
vector_math 2.0.8
xml 3.3.1