Ahmadre / FlutterIconPicker

An adaptive comprehensive IconPicker for Flutter
MIT License
112 stars 76 forks source link

62 separate material icons #64

Closed Ahmadre closed 6 months ago

Ahmadre commented 6 months ago

Related Issues

62

BREAKING Change

Material icons are now separated into:

Migration

⚠ Use IconPack.allMaterial instead, if you still want to display all Material Icons. The old enum value was: IconPack.material

If you work with Material Icons please always pass the corresponding IconPack via the optional parameter when serializing:

serializeIcon(_iconData, iconPack: IconPack.allMaterial);

...

deserializeIcon(
  Map<String, dynamic>.from(await box.get('iconData')),
  iconPack: IconPack.allMaterial,
);

If you display directly using serializeIcon function, als consider it:

Text(
  'Database Entry:\n${serializeIcon(_iconData, iconPack: IconPack.allMaterial).toString()}',
),