tabler_icons_next 3.17.2 tabler_icons_next: ^3.17.2 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 #
Yet another Tabler Icons package for Flutter that keeps updating with the latest version of the upstream.
🎨 Icons gallery #
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 fromSvgPicture.string
are ported to icon widgets for customization. See docs ofSvgPicture.string
for the full list of params.
Note:
A dollar sign (
$
) prefix is added to icon names not allowed by Dart. Currently onlyFunction
is altered to$Function
.
License #
MIT