Use Boxicons in Flutter.
In the dependencies:
section of your pubspec.yaml
, add the following line:
boxicons_flutter: <latest_version>
import 'package:boxicons_flutter/boxicons_flutter.dart';
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return new IconButton(
// Use the Boxicons class for the IconData
icon: new Icon(Boxicons.bxBolt),
onPressed: () { print("Pressed"); }
);
}
}
First release.
Add example and update description.
example/README.md
Example of using boxicons_flutter
.
Add this to your package's pubspec.yaml file:
dependencies:
boxicons_flutter: ^1.1.0
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.
Now in your Dart code, you can use:
import 'package:boxicons_flutter/boxicons_flutter.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
1.1.0 | Nov 24, 2018 |
|
|
1.0.0 | Nov 23, 2018 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
56
|
Health:
Code health derived from static analysis.
[more]
|
99
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100
|
Overall:
Weighted score of the above.
[more]
|
78
|
We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Document public APIs. (-1 points)
825 out of 825 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.
Format lib/boxicons_flutter.dart
.
Run flutter format
to format lib/boxicons_flutter.dart
.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0-dev.68.0 <3.0.0 | ||
flutter | 0.0.0 | ||
Transitive dependencies | |||
collection | 1.14.11 | ||
meta | 1.1.6 | 1.1.7 | |
sky_engine | 0.0.99 | ||
typed_data | 1.1.6 | ||
vector_math | 2.0.8 |