- Nothing Update
import 'package:common/hashid.dart'; import 'package:common/util.dart'; HashIds hashids = HashIds(salt: "secret") String output = hashids.encode(123);
bool isInDebugMode = Util().isInDebugMode;
Color c = HexColor.create("#ff0000");
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: common: ^1.0.0+7
2. Install it
You can install packages from the command line:
$ 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:common/colors.dart'; import 'package:common/hashid.dart'; import 'package:common/util.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]
We analyzed this package on Sep 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.0
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.2
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
flutter format to format
Maintenance issues and suggestions
Homepage URL doesn't exist. (-20 points)
At the time of the analysis the
https://github.com/nayzawoo/commondart was unreachable.
Documentation URL isn't helpful. (-10 points)
Either remove the
documentation field from
pubspec.yaml, or update it to link to a website about the package.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
common.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=2.0.0 <3.0.0|