fichapp_icons 1.0.0
fichapp_icons: ^1.0.0 copied to clipboard
Fichapp shared icons for Flutter — SVG icon library with regular and bold variants.
fichapp_icons #
SVG icon library for Flutter, generated from the Fichapp design system. Includes icons in regular and bold variants.
Installation #
Add to your pubspec.yaml:
dependencies:
fichapp_icons: ^1.0.0
Then run:
flutter pub get
Usage #
import 'package:fichapp_icons/fichapp_icons.dart';
// Basic usage
FichappIcon('heart', size: 24)
// With variant
FichappIcon('heart', variant: FichappIconVariant.bold, size: 24)
// With color
FichappIcon('heart', variant: FichappIconVariant.bold, size: 32, color: Colors.red)
// With explicit width/height
FichappIcon('heart', width: 32, height: 32)
Widget API #
| Property | Type | Default | Description |
|---|---|---|---|
name |
String |
required | Icon name (e.g. 'heart', 'home') |
variant |
FichappIconVariant |
regular |
regular or bold |
size |
double? |
24 |
Sets both width and height |
width |
double? |
— | Overrides size width |
height |
double? |
— | Overrides size height |
color |
Color? |
— | Icon color |
colorFilter |
ColorFilter? |
— | Custom color filter (overrides color) |
fit |
BoxFit |
contain |
SVG fit mode |
alignment |
AlignmentGeometry |
center |
SVG alignment |
semanticsLabel |
String? |
— | Accessibility label |
Available icons #
Browse available icon names via FichappIcons.byVariant:
// All regular icon names
final regularNames = FichappIcons.byVariant['regular']?.keys.toList();
// All bold icon names
final boldNames = FichappIcons.byVariant['bold']?.keys.toList();
License #
MIT