GithubHelp home page GithubHelp logo

ilikerobots / fluttericon_pkg Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 3.0 1017 KB

Fluttericon Flutter

License: BSD 3-Clause "New" or "Revised" License

Kotlin 0.02% Swift 0.05% Objective-C 0.01% Dart 99.92% Shell 0.01%

fluttericon_pkg's Introduction

Fluttericon

pub package

Flutter icon packs built from 15 popular free and open-source webfonts. These include all packs available from FlutterIcon (except Material Icons).

Please note this package is not intended for production use, due to the large size. Instead, it can be used as a development aid to help identify/test icons.

For production use, it is highly recommended to use FlutterIcon to customize your icon pack, limiting your icon font to needed icons and building your own from custom SVG.

Included icon sets

The icon set included are:

  • Brandico
  • Elusive
  • Entypo
  • Font Awesome (4 and 5)
  • Fontelico
  • Iconic
  • Linearicons Free
  • Linecons
  • Maki
  • Meteocons
  • MfgLabs
  • ModernPictograms
  • Octicons
  • RPGAwesome
  • Typicons
  • WebSymbols
  • Zocial

Please review and respect the copyright information contained in the header file for each font set.

Usage

Simply import the desired icon set and use the IconData as normal.

import 'package:fluttericon/typicons_icons.dart';
import 'package:fluttericon/fontelico_icons.dart';
import 'package:fluttericon/linecons_icons.dart';

final myIcons = const <Widget>[
    const Icon(Typicons.attention),
    const Icon(Fontelico.emo_wink),
    const Icon(Linecons.globe),
];

FlutterIcon

To customize icon packs, visit FlutterIcon.

fluttericon_pkg's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fluttericon_pkg's Issues

Ignore lint hints in generated code

Thank you for fluttericon.com generator!

As it's familiar for people to use snake_case for icon names (since material and cupertino icons), snake_case is OK.

But at the same time popular linter rules collections (like effective_dart or lint) uses constant_identifier_names rule that recommends using lowerCamelCase for constant variables. So the linter complains about the code generated by fluttericon.com.

I suggest adding // ignore_for_file: constant_identifier_names to the generated file

Asset Load error in the website

Thanks

Thanks for this package. It has been really helpful.

Error

When I try to open https://www.fluttericon.com/ website. I 'am getting Asset Load Error and the website just shows an infinite loading screen. I tried with multiple browsers, in Incognito mode. What can I do to fix this?

Error Message

Asset load error (bag.js): Can't open url /assets/bundle-fontello.en-US-7a44c51c4fd765fd4064540bf660a9e1.js

PS

I tried in my mobile device and it turned up after a long time

Question about performance

I have some questions around this library, Is there any performance gain between:

  • having this vs having all of the icons in .svg?
  • Using the .ttf format itself?

I see a warning in the readme that says that it should not be used in production, it refers to the material iconset and not the hole library right?:

Please note this package is not intended for production use, due to the large size. Instead, it can be used as a development aid to help identify/test icons.

For production use, it is highly recommended to use FlutterIcon to customize your icon pack, limiting your icon font to needed icons and building your own from custom SVG.

I already asked there but I am not getting any responses:
https://stackoverflow.com/questions/65628990/is-there-any-performance-gain-with-fluttericons-instead-of-using-the-svg-directl

Error loading the icon using custom pack from fluttericon.com

I have selected an icon to be used and then i downloaded the pack. I copied the font into the fonts folder and adjusted pubspec.yaml to load the font. The font is loaded correctly as per the debug logs.

flutter:
    uses-material-design: true
    fonts:
        - family:  MyFlutterApp
          fonts:
            - asset: fonts/MyFlutterApp.ttf

Then I added the dart file to load the icon data:

import 'package:flutter/widgets.dart';

class CustomIcons {
  CustomIcons._();

  static const _kFontFam = 'MyFlutterApp';
  static const String? _kFontPkg = null;

  static const IconData handPointer =
      IconData(0xf25a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
}

Then I used it by importing the class and using the icon data in Icon class.

Icon(CustomIcons.handPointer))

However instead of showing the icon, I get a question mark bordered by a box!
what am I doing wrong?

Missing RTL support

RTL support is missing and can be added easily by adding matchTextDirection: true on IconData
Example: IconData(0xe88a, fontFamily: _kFontFam, fontPackage: _kFontPkg, matchTextDirection: true);

It would be great to have RTL support as option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.