Buscar pacotes, repositórios e categorias de apps

Capa de icofont_flutter
Detalhes do pacotev1.5.0

icofont_flutter

O pacote de ícones IcoFont está disponível como pacote de ícones para Flutter. Estamos aqui para elevar seus designs com milhares de ícones gratuitos e tecnologias inteligentes para uso mais fluido.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
368
Curtidas
34
Pontos Pub
160

Instalar pacote

flutter pub add icofont_flutter

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

IcoFont Flutter é um pacote que traz milhares de ícones gratuitos e de alta qualidade para aplicativos Flutter. Projetado para integração perfeita, ele utiliza tecnologias inteligentes para garantir renderização suave em todas as plataformas. O pacote oferece suporte a Android, iOS, Web, macOS, Windows e Linux, tornando-o altamente versátil. Os ícones são facilmente acessíveis por meio de uma API simples, aumentando a eficiência no design da interface. Ideal para desenvolvedores que buscam uma biblioteca rica de ícones sem sobrecarga adicional.

Casos de uso

  • Melhorando a interface do aplicativo com ícones escaláveis
  • Adicionar pistas visuais em interfaces de usuário
  • Criar uma iconografia consistente entre plataformas
  • Design de painéis e menus de navegação
  • Criando aplicativos web e móveis responsivos

Principais recursos

  • Milhares de ícones gratuitos
  • Suporte multiplataforma
  • Integração fácil com o Flutter
  • Otimizado para desempenho
  • Ícones vetoriais escaláveis

Indicado para

  • Designers de UI/UX usando Flutter
  • Desenvolvedores de aplicativos móveis e web
  • Projetos que exigem bibliotecas extensas de ícones
  • Equipes focadas na consistência do design
  • Desenvolvedores que querem implementação rápida de ícones

Considerações

  • Requer internet para a configuração inicial (se não for cacheado)
  • Opções limitadas de personalização além do estilo padrão
  • Depende de fonte externa para atualizações de ícone
  • Não ideal para projetos minimalistas com poucos ícones
  • Possível aumento de tamanho em projetos grandes com ícones não utilizados

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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.

Categorias

Repositório-fonte

Projetos que usam este pacote