utils/icon_renderer library
Functions
-
detectImageFormat(
String? assetPath, Uint8List? imageData) → String? - Detects image format from asset path or image data.
-
iconDataToImageBytes(
IconData iconData, {double size = 25.0, Color color = CupertinoColors.black}) → Future< Uint8List?> - Renders an IconData to PNG bytes for use in native platform views.
-
resolveAssetPathForPixelRatio(
String assetPath, {double? devicePixelRatio}) → Future< String> - Resolves asset path based on device pixel ratio, similar to Flutter's automatic asset selection.