string_to_icon 1.0.0
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