Skip to content
pubscout

flutter_sficon

2.0.0, released 3 weeks ago by gle6as.sexy

Tree-shakable vector SF Symbols for every platform without bundled fonts.

WASM-ready
$ flutter pub add flutter_sficon
Source repository

What it does

Provides vector path representations of Apple's SF Symbols as static constants usable across all platforms in Flutter. Uses custom widgets to render icons with full weight support while ensuring unused symbols are tree-shaken to minimize app size.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to use SF Symbols in a cross-platform Flutter application without bundling Apple fonts that trigger App Store rejections.
  • You need tree-shakable icons where only the symbols used are shipped in the final binary.

Skip it when

  • You require complex multicolour, hierarchical, or palette SF Symbol rendering modes.
  • You want to pass these constants directly into Flutter's default `Icon` widget instead of the package's specific `SFIcon` widget.

Strengths

  • No bundled font files, avoiding Apple's ITMS-91182 disallowed font warnings and app build rejections.
  • Supports all nine weights from w100 to w900 using Apple's weight masters.
  • Tree-shakable vector paths ensure minimal impact on app size.

Weaknesses

  • Monochrome only; hierarchical, palette, and multicolour rendering modes are not supported.
  • Requires using the custom `SFIcon` widget instead of Flutter's standard `Icon` widget.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter_sficon/flutter_sficon.dart';

const SFIcon(
    SFIcons.sf_heart_fill,
    fontSize: 40,
    fontWeight: FontWeight.bold,
    color: Colors.red,
);

Alternatives

Packages that do the same job and could replace flutter_sficon.