devigner_icons, from pub.dev. 2,496 symbols, each in outline, twotone, bold, bulk and broken. The same artwork as @devigner-ui/icons, rendered from it rather than redrawn. Drawn with flutter_svg.
flutter pub add devigner_iconsimport 'package:devigner_icons/devigner_icons.dart';
const DevignerIcon(DevignerIcons.bagStraps)
const DevignerIcon(
DevignerIcons.bagStraps,
variant: DevignerIconVariant.bold,
size: 32,
color: Color(0xFF6D5CF5),
)Like Flutter's own Icon, size and colour follow the ambient IconTheme unless you give them.
Names are the icon's name in lower camel case: BagStraps is bagStraps. A name that starts with a digit gets a $ in front ($3dCube); one that is a Dart keyword gets one after.
| Option | Default | What it does |
|---|---|---|
variant |
outline |
outline, twotone, bold, bulk or broken |
size |
IconTheme size, else 24 |
Width and height |
color |
IconTheme colour |
The icon's colour |
strokeWidth |
1.5 |
Line weight of outline, twotone and broken |
semanticLabel |
none | Read out by screen readers |
DevignerIcons.bagStraps.svg(variant) gives the drawing as an SVG string, for anything that is not a widget.
Without a semanticLabel an icon is left out of the semantics tree, because an icon beside its own label is otherwise read out twice. With one, it is announced as an image.