Font Awesome Search

Pub

Provide a search function for font_awesome_flutter package using the same Algolia search engine that powers the FontAwesome Icon Gallery

This function call graphql API from https://api.fontawesome.com. For more information about the API, please visit https://fontawesome.com/docs/apis/graphql/query-fields

!! This package doesn't support custom icons yet, you can only search for free icons !!

Installation

dependencies:
  font_awesome_flutter: 
  font_awesome_search: 

Usage

import 'package:font_awesome_search/font_awesome_search.dart';

final icons = await searchFontAwesomeIcons('query');

Important Notice

To make this package work you need to disables icon tree shaking. This means unused icons will not be automatically removed and thus make the overall app size larger. You may need to pass --no-tree-shake-icons to the flutter build command for it to complete successfully.

Example:

flutter build apk --no-tree-shake-icons