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

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

app_icons #

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

Installation #

flutter pub add app_icons

Usage #

import 'package:app_icons/app_icons.dart';

Default style #

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

AppIcons.defaultStyle = AppIconsStyle.bold;

Icon(AppIcons.pencil)
Icon(AppIcons.house)
Icon(AppIcons.star)

Specific style #

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

Icon(AppIconsRegular.pencil)
Icon(AppIconsFill.pencil)
Icon(AppIconsBold.pencil)
Icon(AppIconsThin.pencil)
Icon(AppIconsLight.pencil)

Duotone #

Use AppIcon instead of Icon to render the duotone stack:

// explicit
AppIcon(AppIconsDuotone.pencil)

// via defaultStyle
AppIcons.defaultStyle = AppIconsStyle.duotone;
AppIcon(AppIcons.pencil)

Custom secondary color:

AppIcon(
  AppIconsDuotone.pencil,
  color: Colors.blue,
  duotoneSecondaryColor: Colors.yellow,
  duotoneSecondaryOpacity: 0.5,
)

AppIcon works exactly like the native Icon widget 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.

4
likes
60
points
859
downloads

Documentation

API reference

Publisher

verified publisherliontude.com

Weekly Downloads

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

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on picons