Search packages, repositories and app categories

Package detailsv1.1.2

favicon

Library for finding favicons in a website, either in a or by predefined URL.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3K
Likes
32
Pub points
140

Install package

flutter pub add favicon

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The favicon package is a Flutter library designed to retrieve favicons from websites, either by parsing the HTML of a given URL or using a predefined URL. It simplifies the process of extracting small, recognizable icons associated with web pages, which are commonly used in browser tabs and bookmarks. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it versatile for cross-platform applications. It is particularly useful for apps that display website information or need visual identifiers for URLs.

Use cases

  • Fetching favicons from website URLs
  • Displaying website icons in app UI
  • Enhancing bookmark or history features
  • Integrating website metadata into apps
  • Automating icon retrieval for web links

Key features

  • Supports both dynamic and predefined URL input
  • Cross-platform compatibility
  • Simple API for fetching icons
  • Retrieves favicon from HTML meta tags
  • Works on mobile, desktop, and web

Suitable for

  • Web scraping utilities
  • Bookmark or history apps
  • Browser extensions
  • Social media integrators
  • Apps needing visual website identification

Considerations

  • Relies on external website structure
  • May fail if favicon is not properly declared
  • Performance depends on network speed
  • Requires internet connection
  • Limited to publicly accessible websites

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Scrapes a website for favicons and orders them by image dimensions, or just return the best one. Example:

import 'package:favicon/favicon.dart';
var iconUrl = await FaviconFinder.getBest('https://www.mashable.com');
print(iconUrl);

Inspired by https://github.com/scottwernervt/favicon.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package