Search packages, repositories and app categories

Package detailsv1.0.0

icon_badge

A simple flutter icon widget with notification badge to show number of items.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
144
Likes
32
Pub points
150

Install package

flutter pub add icon_badge

Package Overview

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

IconBadge is a lightweight Flutter package that adds a notification badge to any icon, displaying a numeric count. It's ideal for showing unread messages, pending items, or alerts in a clean, customizable way. The badge appears as a small circular overlay on the corner of the icon, supporting various colors, sizes, and positioning options. Designed for simplicity and performance, it works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Showing unread message counts
  • Displaying pending task notifications
  • Indicating cart item quantities
  • Highlighting new content alerts
  • Visualizing user activity indicators

Key features

  • Customizable badge size and color
  • Positionable badge on icon corners
  • Supports numeric and text labels
  • Lightweight and performant
  • Cross-platform compatibility
  • Easy integration with existing icon widgets

Suitable for

  • Mobile app UIs with notification indicators
  • Dashboard widgets with status badges
  • E-commerce apps for cart counters
  • Messaging or social media interfaces
  • Simple, clean notification displays

Considerations

  • Limited to basic badge styling
  • No built-in animation support
  • Does not handle overflow beyond single-digit numbers
  • Best suited for low to moderate badge values
  • Requires manual handling of dynamic updates

Original README

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

Icon with badge for notifications

How to use This widget can be used in appbar, bottom navigation and drawer.

Usage:

      IconBadge(
        icon: Icon(Icons.notifications_none),
        itemCount: 0,
        badgeColor: Colors.red,
        itemColor: Colors.white,
        hideZero: true,
        onTap: () {
          print('test');
        },
      ),

Categories

Source repository

Projects using this package

No data available yet.