Giter VIP home page Giter VIP logo

flutter_tabler_icons's People

Contributors

bigbadbob2003 avatar codecalm avatar hacker1024 avatar jmshrv avatar

Stargazers

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

flutter_tabler_icons's Issues

Icons have a small offset

When using an icon inside a CircleAvatar, TablerIcons have a small undesired offset compared to Material Design ones.

CircleAvatar(
  child: Icon(
    Icons.check,
    size: 24.0,
  ),
),

vs

CircleAvatar(
  child: Icon(
    TablerIcons.check,
    size: 24.0,
  ),
),

Vertical position

Icons vertical position is not exactly at the center of icon widget, it's a bit downer.
Please fix it

image

Icons stroke width

In tabler icons website (https://tabler-icons.io/), it's possible to choose the stroke width in the library? Seems like they have a default 1 stroke, would be really nice a way to change that. Thank you very much

Unable to import font in pubspec.yaml

When I'm writing golden tests, I need to import the tabler-icons.ttf font into my tests through the following code:

const _tablerIconsPath = [
  'packages/flutter_tabler_icons/assets/fonts/tabler-icons.ttf'
];

// I will call _loadFonts() in my tests
Future<void> _loadFonts() async {
  final tablerIconsFontLoader =
      FontLoader('packages/flutter_tabler_icons/TablerIcons');
  for (final path in _tablerIconsPath) {
    tablerIconsFontLoader.addFont(rootBundle.load(path));
  }
  await tablerIconsFontLoader.load();
}

If I don't do this, the Tabler icons are not loaded into the screen and they show up as squares in my golden tests.

However, I'm unable to access the assets/fonts/tabler-icons.ttf because it's not within a lib folder. The Flutter docs state that the files need to be within the lib folder.

Is it possible to shift the tabler-icons.ttf into lib/fonts/ so that I can access them in my golden tests?

Thanks!

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.