Ahmadre / FlutterIconPicker

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

Error: Getter not found: 'tripadvisor' #30

Closed bilalsammour closed 2 years ago

bilalsammour commented 2 years ago

I am using flutter_iconpicker: ^3.0.4 with Flutter 2.5.2, I get the following error:

: Error: Getter not found: 'tripadvisor'.
../…/Packs/FontAwesome.dart:1407
  'tripadvisor': FontAwesomeIcons.tripadvisor,
                                  ^^^^^^^^^^^

Here is my code:

    final iconData = await FlutterIconPicker.showIconPicker(
      context,
      iconPackMode: IconPack.material,
      iconColor: AppColors.secondary,
      title: Text(
        widget.emptyText,
      ),
      closeChild: Text(
        S.current.close,
        textScaleFactor: _scaleFactorClose,
      ),
      searchHintText: S.current.search,
      noResultsText: S.current.noResultsFor,
    );
ManeraKai commented 2 years ago

Same, it seems that the package font_awesome_flutter removed this font in this commit: https://github.com/fluttercommunity/font_awesome_flutter/commit/32a780255717987fcdbb190ab281c25c3f00f3ab#diff-345938ec3543207b10539458bf2a1ee98d0227980d6b0c9b2ae891e38f1c12a3. All that means is the getter for that tripadvisor font should be removed. I'll create a PR.

jesusspr commented 2 years ago

Experienced the same problem. I had to fork and fix myself

Ahmadre commented 2 years ago

I'll fix this asap. Sorry, I hate it' that the other package managers always change their icons 😅

Ahmadre commented 2 years ago

Merged. I'll try to publish a new version soon :)