Pakete, Repositories und App-Kategorien suchen

Cover von icofont_flutter
Paketdetailsv1.5.0

icofont_flutter

Der IcoFont-Icon-Pak ist als Flutter-Icon-Paket verfügbar. Wir helfen Ihnen, Ihre Designs mit Tausenden kostenloser Icons und intelligenten Technologien für eine reibungslosere Nutzung zu verbessern.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
368
Likes
34
Pub-Punkte
160

Paket installieren

flutter pub add icofont_flutter

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

IcoFont Flutter ist ein Paket, das Tausende kostenloser, hochwertiger Symbole in Flutter-Anwendungen bringt. Speziell für eine nahtlose Integration entwickelt, nutzt es intelligente Technologien, um eine reibungslose Darstellung über alle Plattformen hinweg sicherzustellen. Das Paket unterstützt Android, iOS, Web, macOS, Windows und Linux und ist daher äußerst vielseitig. Die Symbole sind über eine einfache API problemlos zugänglich und erhöhen die Effizienz bei der Gestaltung der Benutzeroberfläche. Perfekt für Entwickler, die eine umfangreiche Symbolbibliothek ohne zusätzlichen Overhead suchen.

Anwendungsfälle

  • Verbesserung der App-Oberfläche mit skalierbaren Symbolen
  • Visuelle Hinweise in Benutzeroberflächen hinzufügen
  • Konsistente Iconografie über Plattformen hinweg erstellen
  • Dashboard- und Navigationsmenüs gestalten
  • Reaktive Web- und Mobile-Anwendungen erstellen

Hauptmerkmale

  • Tausende kostenloser Symbole
  • Plattformübergreifende Unterstützung
  • Einfache Integration mit Flutter
  • Leistungsorientiert optimiert
  • Skalierbare Vektoricons

Geeignet für

  • UI/UX-Designer, die Flutter verwenden
  • Mobile- und Web-App-Entwickler
  • Projekte, die umfangreiche Icon-Bibliotheken erfordern
  • Teams, die sich auf Designkonsistenz konzentrieren
  • Entwickler, die eine schnelle Icon-Implementierung möchten

Hinweise

  • Benötigt Internet für die erste Einrichtung (falls nicht zwischengespeichert)
  • Begrenzte Anpassungsoptionen jenseits der Standardgestaltung
  • Hängt von externer Quelle für Icon-Updates ab
  • Nicht ideal für minimalistische Projekte mit wenigen Symbolen
  • Mögliche Bloatung bei großen Projekten mit nicht verwendeten Symbolen

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

icofont_flutter

pub package CI license: MIT

The IcoFont icon pack as a Flutter icon pack — 2,105 icons exposed as IconData constants, usable anywhere Flutter takes an icon.

No dependencies beyond Flutter itself. The font ships with the package, so there is nothing to declare in your own pubspec.yaml beyond the package.

Installation

flutter pub add icofont_flutter

Or add it to the dependencies: section of your pubspec.yaml:

dependencies:
  icofont_flutter: ^1.5.0

Usage

Every icon is a static const IconData on IcoFontIcons, so it works with any widget that accepts an IconData:

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

class MyWidget extends StatelessWidget {
  const MyWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
      icon: const Icon(IcoFontIcons.brandIcofont),
      onPressed: () => debugPrint('Pressed'),
    );
  }
}

Size and color come from the usual Icon properties:

const Icon(IcoFontIcons.rocket, size: 48, color: Colors.indigo)
Finding an icon

Browse the pack at icofont.com/icons. An icon's name there maps to a constant by camel casing it:

IcoFont name Constant
angry-monster IcoFontIcons.angryMonster
brand-icofont IcoFontIcons.brandIcofont
ui-calculator IcoFontIcons.uiCalculator
500px IcoFontIcons.fiveHundredpx

Names that would start with a digit are spelled out, since Dart identifiers cannot. lib/icofont_flutter.dart lists every constant with its IcoFont name in a comment above it.

The 324 duotone icons are not currently available — they are drawn as pairs of stacked glyphs, which the single-IconData API here cannot express.

Requirements

Dart >=2.12.0 <4.0.0, Flutter >=1.17.0. Works on Dart 2 and Dart 3.

Example

See example/ for a small app that renders icons from the pack:

cd example
flutter run

Updating the icons

lib/icofont_flutter.dart is generated from lib/fonts/icofont.ttf — do not edit it by hand. After replacing the font, regenerate:

dart run tool/generate_icons.dart

The generator reads glyph names from the font's post table and code points from its cmap table. It refuses to guess a name it cannot derive, so if it reports a problem, add the icon to nameOverrides in the script rather than editing the output. CI runs dart run tool/generate_icons.dart --check to verify the committed file still matches the font.

Credits

Icons by the IcoFont team, who made this wonderful pack free for everyone. This package only wraps their work for Flutter.

License

MIT — see LICENSE.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden