Ahmadre / FlutterIconPicker

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

Build fails in Flutter 3.0 #47

Closed ameenvga closed 1 year ago

ameenvga commented 2 years ago

It was working fine. Today I just updated my flutter to Flutter 3.0. Now, when Iflutter run this error shows and build fails.


/C:/Users/ameen/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/Packs/Material.dart(1230,25): error G75B77105: Member not found: 'class__sharp'. [C:\posterapp\build\windows\flutter\flutter_assemble.vcxproj]
/C:/Users/ameen/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/Packs/Material.dart(1231,27): error G75B77105: Member not found: 'class__rounded'. [C:\posterapp\build\windows\flutter\flutter_assemble.vcxproj]
/C:/Users/ameen/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/Packs/Material.dart(1232,28): error G75B77105: Member not found: 'class__outlined'. [C:\posterapp\build\windows\flutter\flutter_assemble.vcxproj]

/C:/Users/ameen/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/iconPicker.dart(47,20): warning G1E0FE241: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [C:\posterapp\build\windows\flutter\flutter_assemble.vcxproj]
internelp commented 2 years ago

Same problem.

ghengx commented 2 years ago

any updates for the fix?

samuel23taku commented 2 years ago

any updates for the fix?

I provided the fix, but the pull request is not approved yet.

ghengx commented 2 years ago

any updates for the fix?

I provided the fix, but the pull request is not approved yet.

Thanks mate

DewminaUdayashan commented 2 years ago

For now open YOUR_PC/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/Packs/Material.dart file and search and comment the lines that contains, class_sharp, class_rounded, class_outlined and rebuild the project.

Leomhl commented 2 years ago

Same problem here with flutter 3.0.3

TomasWard1 commented 2 years ago

Same problem

TomasWard1 commented 2 years ago

@Leomhl can't seem to find that directory, can you point me in the right direction? I'm with a mac

ObjectiveCalendar commented 2 years ago

For now open YOUR_PC/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_iconpicker-3.1.4+1/lib/IconPicker/Packs/Material.dart file and search and comment the lines that contains, class_sharp, class_rounded, class_outlined and rebuild the project.

this works well to fix the problem at least in local, but I don't think it will be the case in production.

razfazz commented 2 years ago

is there a better fix for now?

jpv123 commented 1 year ago

@Ahmadre Can you please help us with this? It should be an easy fix :)

Ahmadre commented 1 year ago

It's fixed and published: Version

justinBrrict commented 1 year ago

This is still happening to me even though I am already using v3.2.2

/C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25632:21: Error: Member not found: 'whatsapp'. 'whatsapp': Icons.whatsapp, ^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25635:27: Error: Member not found: 'whatsapp_sharp'. 'whatsapp_sharp': Icons.whatsapp_sharp, ^^^^^^^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25638:29: Error: Member not found: 'whatsapp_rounded'. 'whatsapp_rounded': Icons.whatsapp_rounded, ^^^^^^^^^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25641:30: Error: Member not found: 'whatsapp_outlined'. 'whatsapp_outlined': Icons.whatsapp_outlined, ^^^^^^^^^^^^^^^^^

can anyone help?

Ahmadre commented 1 year ago

This is still happening to me even though I am already using v3.2.2

/C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25632:21: Error: Member not found: 'whatsapp'. 'whatsapp': Icons.whatsapp, ^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25635:27: Error: Member not found: 'whatsapp_sharp'. 'whatsapp_sharp': Icons.whatsapp_sharp, ^^^^^^^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25638:29: Error: Member not found: 'whatsapp_rounded'. 'whatsapp_rounded': Icons.whatsapp_rounded, ^^^^^^^^^^^^^^^^ /C:/Users/supre/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_iconpicker-3.2.2/lib/IconPicker/Packs/Material.dart:25641:30: Error: Member not found: 'whatsapp_outlined'. 'whatsapp_outlined': Icons.whatsapp_outlined, ^^^^^^^^^^^^^^^^^

can anyone help?

its fixed :)