evil_icons_flutter 0.2.2

evil_icons_flutter #

🖤 Evil Icons for Flutter.

Made from Evil Icons.

Build Status GitHub Hits-of-Code

Installation #

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

dependencies:
  evil_icons_flutter: ^0.2.1

You can install packages from the command line: #

$ flutter packages get

Usage #

See more icon at EvilIcons by Alexander Madyankin & Roman Shamin (70 icons)

import 'package:evil_icons_flutter/evil_icons_flutter.dart';

class User extends StatelessWidget {

    Widget build(_) {
        return _buildIconButton();
    }

    Widget _buildIconButton() {
        return IconButton(
            icon: Icon(EvilIcons.user) // icon user
        );//IconButton
    }
}

Contributors #

Thien Chi ViCuong Duy Nguyen
Thien Chi ViCuong Duy Nguyen

License #

This project is licenced under the MIT.

Any bundled fonts are copyright to their respective authors under MIT

Version 0.2.1 (5-05-2019) #

  • Fix missing demo

Version 0.2.1 (5-05-2019) #

  • Add contributor
  • Update README

Version 0.2.0 (24-04-2019) #

  • Update core
  • Fix missing name package
  • Update README
  • Update gitignore

Version 0.1.1 (24-04-2019) #

  • Fix missing some icons

Version 0.1.0 (23-04-2019) #

  • Package created with full evil icons

example/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Evil Icons',
      theme: ThemeData(
        primarySwatch: Colors.lightBlue,
      ),
      debugShowCheckedModeBanner: false,
      home: MyHomePage(title: 'Evil Icons'),
    );
  }
}

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(_) {
    return Scaffold(
      appBar: AppBar(
        title: Center(
          child: Text(
            widget.title,
            style: TextStyle(color: Colors.white),
          ),
        ),
      ),
      body: Center(
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                _createIcon(
                  EvilIcons.sc_github,
                  'Github icon',
                ),
                _createIcon(EvilIcons.spinner_2, 'Spinner 2 icon'),
                _createIcon(EvilIcons.plus, 'Plus icon'),
                _createIcon(EvilIcons.play, 'Play icon'),
                _createIcon(EvilIcons.star, 'Star icon'),
              ],
            ),
            Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                _createIcon(EvilIcons.sc_facebook, 'Facebook icon'),
                _createIcon(EvilIcons.sc_twitter, 'Twitter icon'),
                _createIcon(EvilIcons.search, 'Search icon'),
                _createIcon(EvilIcons.refresh, 'Refesh icon'),
                _createIcon(EvilIcons.sc_youtube, 'Youtube icon'),
              ],
            ),
          ],
        ),
      ),
    );
  }

  Widget _createIcon(IconData iconData, String name, {Color iconColor = Colors.blueAccent}) {
    return Row(
      children: <Widget>[
        IconButton(
          icon: Icon(iconData),
          iconSize: 55,
          color: iconColor,
          onPressed: () {
            print(name);
          },
        ),
        Text(
          name,
          style: TextStyle(color: iconColor, fontWeight: FontWeight.bold, fontSize: 16),
        ),
      ],
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  evil_icons_flutter: ^0.2.2

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

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

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

76 out of 76 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/evil_icons_data.dart.

Run flutter format to format lib/evil_icons_data.dart.

Dependencies

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