tabler_icons_next 3.17.0 copy "tabler_icons_next: ^3.17.0" to clipboard
tabler_icons_next: ^3.17.0 copied to clipboard

Yet another Tabler Icons package for Flutter that keeps updating with the latest version of the upstream.

Tabler Icons Next for Flutter #

Pub.dev

Yet another Tabler Icons package for Flutter that keeps updating with the latest version of the upstream.

https://tabler-icons-next.betakuang.me/

✴️ Migrate to v3 #

v3.x come with some breaking changes. Font icons and SVGs are no longer available, and each icon is now a individual widget.

For example, to draw a check mark icon in v2, you may use

Icon(TablerIcons.check)
// or
SvgPicture.string(TablerIconsSvg.check)

Now in v3 you should use

Check()

To avoid confusion, you may want to add an alias to this package like

import 'package:tabler_icons_next/tabler_icons_next.dart' as tabler;

// ...
tabler.Check()

🎉 Getting started #

  • Directly import

    import 'package:tabler_icons_next/tabler_icons_next.dart';
       
    Check()
    
  • Add an alias

    Names of some icons may conflict with other Flutter/Dart classes (for example BorderRadius). Use a package alias to avoid confusion.

    import 'package:tabler_icons_next/tabler_icons_next.dart' as tabler;
    
    // ...
    tabler.Check()
    
  • Set a stroke width

    import 'package:tabler_icons_next/tabler_icons_next.dart' as tabler;
    
    // ...
    tabler.Check(strokeWidth: 1.5)
    
  • Set a color

    import 'package:tabler_icons_next/tabler_icons_next.dart' as tabler;
    
    // ...
    tabler.Check(color: Colors.teal)
    

    Tabler Icons Next uses flutter_svg to draw icons. Parameters from SvgPicture.string are ported to icon widgets for customization. See docs of SvgPicture.string for the full list of params.

Note:

A dollar sign ($) prefix is added to icon names not allowed by Dart. Currently only Function is altered to $Function.

License #

MIT

4
likes
0
pub points
51%
popularity

Publisher

verified publisherbetakuang.me

Yet another Tabler Icons package for Flutter that keeps updating with the latest version of the upstream.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on tabler_icons_next