mango_ui 0.4.3

mango-ui #

Shared Dart libraries to be used in conjunction with the Mango Go "framework"

Use this package as a library

1. Depend on it

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


dependencies:
  mango_ui: ^0.4.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:mango_ui/bodies/app.dart';
import 'package:mango_ui/bodies/article.dart';
import 'package:mango_ui/bodies/comment.dart';
import 'package:mango_ui/bodies/header.dart';
import 'package:mango_ui/bodies/key.dart';
import 'package:mango_ui/bodies/login.dart';
import 'package:mango_ui/bodies/message.dart';
import 'package:mango_ui/bodies/portfolio.dart';
import 'package:mango_ui/bodies/profile.dart';
import 'package:mango_ui/bodies/register.dart';
import 'package:mango_ui/bodies/role.dart';
import 'package:mango_ui/bodies/sociallink.dart';
import 'package:mango_ui/bodies/up.dart';
import 'package:mango_ui/formstate.dart';
import 'package:mango_ui/keys.dart';
import 'package:mango_ui/pathlookup.dart';
import 'package:mango_ui/services/blogapi.dart';
import 'package:mango_ui/services/commentapi.dart';
import 'package:mango_ui/services/commsapi.dart';
import 'package:mango_ui/services/profileapi.dart';
import 'package:mango_ui/services/requester.dart';
import 'package:mango_ui/services/secureapi.dart';
import 'package:mango_ui/services/uploadapi.dart';
import 'package:mango_ui/services/vehicleapi.dart';
import 'package:mango_ui/services/vinapi.dart';
import 'package:mango_ui/trustvalidator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
14
Health:
Code health derived from static analysis. [more]
92
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: web

Platform components identified in package: html.

Health issues and suggestions

Document public APIs. (-0.23 points)

147 out of 151 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/services/requester.dart. (-1.49 points)

Analysis of lib/services/requester.dart reported 3 hints:

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

line 9 col 19: Unnecessary new keyword.

line 33 col 19: Unnecessary new keyword.

Fix lib/services/secureapi.dart. (-1.49 points)

Analysis of lib/services/secureapi.dart reported 3 hints:

line 21 col 54: Unnecessary new keyword.

line 27 col 55: Unnecessary new keyword.

line 34 col 57: Unnecessary new keyword.

Fix lib/services/uploadapi.dart. (-1.49 points)

Analysis of lib/services/uploadapi.dart reported 3 hints:

line 14 col 55: Unnecessary new keyword.

line 27 col 19: Unnecessary new keyword.

line 38 col 18: Unnecessary new keyword.

Fix additional 9 files with analysis or formatting issues. (-3.50 points)

Additional issues in the following files:

  • lib/keys.dart (2 hints)
  • lib/bodies/key.dart (1 hint)
  • lib/services/blogapi.dart (1 hint)
  • lib/services/commentapi.dart (1 hint)
  • lib/services/commsapi.dart (1 hint)
  • lib/services/profileapi.dart (1 hint)
  • lib/bodies/comment.dart (Run dartfmt to format lib/bodies/comment.dart.)
  • lib/bodies/register.dart (Run dartfmt to format lib/bodies/register.dart.)
  • lib/bodies/sociallink.dart (Run dartfmt to format lib/bodies/sociallink.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.

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

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 < 3.0.0
Dev dependencies
test >=1.6.6