Skip to content

Fix: (flutter) avoid SDK class name clashes for icon widgets (#559) - #605

Open
gkarasek wants to merge 1 commit into
iconoir-icons:mainfrom
gkarasek:fix/flutter-559-widget-class-names
Open

Fix: (flutter) avoid SDK class name clashes for icon widgets (#559)#605
gkarasek wants to merge 1 commit into
iconoir-icons:mainfrom
gkarasek:fix/flutter-559-widget-class-names

Conversation

@gkarasek

@gkarasek gkarasek commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When generating iconoir_flutter, some icon widget classes used the same PascalCase names as Dart / Flutter SDK types (e.g. Text, List, Map), which caused ambiguous import errors alongside package:flutter/material.dart (issue #559).
  • Those names are now emitted with an Icon suffix during the Flutter build (e.g. TextTextIcon).

Breaking change

Apps that imported the affected generated widgets by the old class names must switch to the suffixed names (see FLUTTER_SDK_CLASS_CONFLICTS in bin/build/targets/flutter/index.js).

Fixes #559

Icon classes that matched dart:core or Flutter types (e.g. Text, List,
Map) caused ambiguous import errors with Material. Rename those
widgets with an Icon suffix when building the Flutter package.

Fixes iconoir-icons#559

Made-with: Cursor
@gkarasek gkarasek changed the title fix(flutter): avoid SDK class name clashes for icon widgets (#559) Fix: (flutter) avoid SDK class name clashes for icon widgets (#559) Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Text" Iconoir is stopping Text Widget from Flutter

1 participant