flutter_brand_icons 1.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 88

repo-header

flutter_brand_icons v1.1.0 #

See Catalog #

Important Note #

Naming conventions have been changed for better readability and consistancy with all other flutter icon packs

To convert from the catalog simply follow this method

.NET => dotNet

Apple Pay => applepay

if still you face any problems have a look into the documentation (class BrandIcons), you could also checkout the example app for a comprehensive catalog with the proper naming system

655 Brand Icons for Flutter #

This Flutter package allows you to use all the Brand Icons created by Dan Leech and others

Find it at pub.dartlang.org

Installation #

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

flutter_brand_icons: <latest_version>

Usage #

import "package:flutter_brand_icons/flutter_brand_icons.dart";

class MyAwesomeWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      icon: Icon(BrandIcons.github),
      onPressed: () {
          print("awesome platform to share code and ideas");
      }
    );
  }
}

Example #

View the flutter app in the example directory

Screenshot #

screenshot-1 screenshot-2

1.1.0 #

  • New Features
    • Added 41 new icons

1.0.0 #

  • Update
    • Stable Release
    • Production Ready
  • What's Next
    • Adding more brands

0.0.2 #

  • Update
    • Modification to package descripttion

0.0.1 #

  • New Features
    • 614 Brand Icons
    • Androidx Compatible
    • Supports iOS

example/lib/main.dart

import "package:flutter/material.dart";

import './icons_list.dart';

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

class MyApp extends StatelessWidget {
  Widget iconCard(String iconName, IconData iconData) {
    return Card(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Icon(
            iconData,
            size: 50.0,
          ),
          SizedBox(height: 30.0),
          Text(iconName)
        ],
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: "Brand Icons Example",
      home: Scaffold(
        backgroundColor: Color(0xFFF9F9F9),
        appBar: AppBar(
          title: Text('BrandIcons Example'),
        ),
        body: GridView.builder(
          gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
            crossAxisCount: 2,
            crossAxisSpacing: 8.0,
          ),
          itemBuilder: (BuildContext context, int index) {
            return iconCard(
              iconsDataList[index].keys.first,
              iconsDataList[index].values.first,
            );
          },
          itemCount: iconsDataList.length,
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_brand_icons: ^1.1.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_brand_icons/flutter_brand_icons.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
76
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]
88
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.7
  • Flutter: 1.12.13+hotfix.9

Health issues and suggestions

Document public APIs. (-1 points)

658 out of 658 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.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
recase ^2.0.1