picons 3.0.0 copy "picons: ^3.0.0" to clipboard
picons: ^3.0.0 copied to clipboard

1512 Phosphor icons for Flutter — thin, light, regular, bold, fill, and duotone styles.

Picons #

1512 icons for Flutter — thin, light, regular, bold, fill, and duotone styles. Based on Phosphor Icons.

Installation #

flutter pub add picons

Usage #

import 'package:picons/picons.dart';

Default style #

Set a global style once in main.dart and access any icon without repeating it:

Picons.defaultStyle = PiconsStyle.bold;

Icon(Picons.pencil)
Icon(Picons.house)
Icon(Picons.star)

Specific style #

Use a style class directly — always explicit, unaffected by defaultStyle:

Icon(PiconsRegular.pencil)
Icon(PiconsFill.pencil)
Icon(PiconsBold.pencil)
Icon(PiconsThin.pencil)
Icon(PiconsLight.pencil)

Duotone #

Use Picon instead of Icon to render the duotone stack:

Picon(PiconsDuotone.pencil)

When using Picons.defaultStyle = PiconsStyle.duotone, Picons.x returns the primary layer as a flat PiconData. For full duotone rendering always use PiconsDuotone directly.

Custom secondary color:

Picon(
  PiconsDuotone.pencil,
  color: Colors.blue,
  duoColor: Colors.yellow,
  duoOpacity: 0.5,
)

Picon works exactly like the native Icon widget for all non-duotone icons.

Theme integration #

Configure duotone defaults globally via PiconsTheme:

MaterialApp(
  theme: ThemeData(
    extensions: [
      PiconsTheme(color: Colors.grey, duoColor: Colors.grey, duoOpacity: 0.2),
    ],
  ),
  darkTheme: ThemeData(
    extensions: [
      PiconsTheme(color: Colors.white, duoColor: Colors.white, duoOpacity: 0.15),
    ],
  ),
)

Colors resolve in this order: explicit value on the widget → PiconsThemeIconTheme.

Example App #

cd example
flutter pub get
flutter run

License #

MIT © Liontude, LLC

This project is a fork of phosphor-icons/phosphor-flutter by Phosphor Icons, licensed under MIT.

4
likes
160
points
859
downloads

Documentation

API reference

Publisher

verified publisherliontude.com

Weekly Downloads

1512 Phosphor icons for Flutter — thin, light, regular, bold, fill, and duotone styles.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter

More

Packages that depend on picons