string_to_icon 1.0.0 copy "string_to_icon: ^1.0.0" to clipboard
string_to_icon: ^1.0.0 copied to clipboard

A simple, lightweight Flutter package to map string names to Material Design Icons, with fallback support for unknown icons.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2025-07-25 #

Added #

  • Initial release of string_to_icon package
  • Core IconMapper class with 60+ Material Icons
  • Case-insensitive icon name lookup
  • Space handling in icon names (e.g., "home work" โ†’ Icons.home_work)
  • Fallback support for unknown icons (returns Icons.circle)
  • Utility methods: getSupportedIconNames(), getSupportedIconCount(), isSupported()
  • Comprehensive test suite with 100% code coverage
  • Example app demonstrating all features
  • Full documentation with usage examples

Icon Categories Included #

  • Device icons (tablets, phones, TV, etc.)
  • Navigation and location icons
  • System and settings icons
  • Connectivity icons (WiFi, Bluetooth, cellular)
  • Battery and power icons
  • Analytics and chart icons
  • People and user management icons
  • Authentication icons
  • Shape and design icons
  • Notification and alert icons
  • Weather and time icons
  • General utility icons

Features #

  • ๐Ÿ” Case-insensitive mapping
  • ๐Ÿš€ Automatic space handling
  • ๐Ÿ›ก๏ธ Safe fallback behavior
  • ๐Ÿ“ฆ 400+ icons included
  • ๐Ÿงช Fully tested
  • ๐Ÿ“š Well documented
1
likes
160
points
181
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple, lightweight Flutter package to map string names to Material Design Icons, with fallback support for unknown icons.

Repository

License

MIT (license)

Dependencies

flutter

More

Packages that depend on string_to_icon