Skip to content
pubscout

unicons

3.0.0, released 2 years ago by pedrolemoz.dev

Flutter library exposing Unicons icon set as IconData and widget classes.

WASM-ready
$ flutter pub add unicons
Source repository

What it does

Provides access to the Unicons line and solid icon sets via IconData constants and optional widget wrappers. Icons are auto‑generated from the latest Unicons release.

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

Use it when

  • You need a large collection of free icons for a Flutter app
  • You want both line and solid variants of the same icon set
  • You prefer a single dependency for all icons rather than multiple icon packs

Skip it when

  • You require custom or brand‑specific icons not included in Unicons
  • You need to modify icon shapes at runtime

Strengths

  • Huge icon library (>1000 icons)
  • Auto‑generated code keeps icons up to date
  • Supports both IconData and Widget usage
  • No build_runner or codegen required

Weaknesses

  • No support for custom icon files
  • No theming or color customization beyond IconData properties
  • Large package size due to many icons

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add `unicons: any` to pubspec and run `flutter pub get`

import 'package:flutter/material.dart';
import 'package:unicons/unicons.dart';

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Icon(UniconsLine.camera);
  }
}

Alternatives

Packages that do the same job and could replace unicons.