picons 2.0.1
picons: ^2.0.1 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:
// explicit
Picon(PiconsDuotone.pencil)
// via defaultStyle
Picons.defaultStyle = PiconsStyle.duotone;
Picon(Picons.pencil)
Custom secondary color:
Picon(
PiconsDuotone.pencil,
color: Colors.blue,
duotoneSecondaryColor: Colors.yellow,
duotoneSecondaryOpacity: 0.5,
)
Piconworks exactly like the nativeIconwidget for all non-duotone icons.
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.