flutter_boxicons 2.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 83

Flutter Boxicons #

build Pub Version

Boxicons customization for Flutter. You can use 2K+ more Boxicons.

Instalation #

In the dependencies: section of your pubspec.yaml, add the following line:

flutter_boxicons: <latest_version>

Usage #

You can use it very easily. For example:

import 'package:flutter/material.dart';
import 'package:flutter_boxicons/flutter_boxicons.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return IconButton(
        // Use Boxicons class
        icon: Icon(Boxicons.bx_message_rounded_dots),
        onPressed: () {
            print('Congratulations');
        }
    );
  }
}

Info #

Boxicons version: 2.0.5

Thank you very much Boxicons

License #

MIT

2.0.0 #

  • Update BoxIcons v2.0.5

1.1.1 #

  • set fontPackage for IconData

1.1.0 #

  • Update README and add more icons

1.0.0 #

  • First realese

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_boxicons/flutter_boxicons.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Boxicons Demo',
      home: MyHomePage(title: 'Flutter Boxicons Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Flutter Boxicons Example :',
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Icon(Boxicons.bx_plus_circle),
                Icon(Boxicons.bx_pointer),
                Icon(Boxicons.bx_star),
                Icon(Boxicons.bx_power_off),
                Icon(Boxicons.bx_printer),
                Icon(Boxicons.bxl_500px)
              ],
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          print("Button presssed");
        },
        tooltip: 'Boxicons Button',
        child: Icon(
          Boxicons.bx_message_rounded_dots,
          color: Colors.white,
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_boxicons: ^2.0.0

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:flutter_boxicons/flutter_boxicons.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
66
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]
83
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform linux

Because of import path [package:flutter_boxicons/flutter_boxicons.dart] that declares support for platforms: android, ios

Package does not support Flutter platform macos

Because of import path [package:flutter_boxicons/flutter_boxicons.dart] that declares support for platforms: android, ios

Package does not support Flutter platform web

Because of import path [package:flutter_boxicons/flutter_boxicons.dart] that declares support for platforms: android, ios

Package does not support Flutter platform windows

Because of import path [package:flutter_boxicons/flutter_boxicons.dart] that declares support for platforms: android, ios

Package not compatible with SDK dart

because of import path [flutter_boxicons] that is in a package requiring null.

Health issues and suggestions

Document public APIs. (-0.98 points)

1462 out of 1463 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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test