FLUTTER ECOSYSTEM

font_mapper

A Dart CLI tool that automatically scans font assets and updates the `fonts:` section in your pubspec.yaml file.

Latest version
1.0.2
30-day downloads
36
Likes
9
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Font Mapper is a Dart CLI tool designed to streamline font asset management in Flutter projects. It automatically scans local font files and updates the `fonts:` section in the pubspec.yaml file, eliminating manual configuration. Ideal for projects with numerous or frequently changing fonts, it ensures consistency and reduces setup time. The tool supports all major platforms, including Android, iOS, macOS, Windows, and Linux, making it versatile across development environments. By integrating seamlessly with Flutter’s build process, Font Mapper enhances developer productivity and minimizes configuration errors.

Use cases
  • Automating font asset registration
  • Updating pubspec.yaml after adding new fonts
  • Maintaining consistent font configurations across teams
  • Reducing manual errors in font setup
  • Streamlining CI/CD workflows with font changes
Key features
  • Auto-detects font files in project
  • Updates pubspec.yaml automatically
  • Supports multiple platforms
  • Command-line interface for easy integration
  • Preserves existing font configuration structure
Suitable for
  • Flutter developers managing many fonts
  • Teams requiring consistent font setup
  • CI/CD pipelines involving font assets
  • Developers seeking to reduce manual pubspec edits
  • Projects with frequent font updates
Considerations
  • Requires command-line access
  • May need permission to modify pubspec.yaml
  • Not suitable for non-Dart projects
  • Depends on correct font file naming conventions
  • Should be used carefully in shared repositories
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add font_mapper

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.