SBadgeView

Builds and tests pub package pub points Latest release Stable Version Stability repo size

A helpful dart package to show notifications count or anything important to know!

Usage

To use this dependeny, add sbadgeview as a dependency in your pubspec.yaml file.

dependencies:
  sbadgeview: ^1.0.0

Example

Import the library.

import 'package:sbadgeview/sbadge_view.dart';

Use it anywhere you want to create a SBadgeView:

Preview

tele preview

How to use

    SBadgeView(
      content: IconButton( // any widget
        child: Icon(Icons.shop), 
        onPressed: () {},
      ),
      badgeCount: 8,

      // optional attributes:
      badgeColor: Colors.black,
      badgeColorOpacity: 0.5,
      badgePadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
      badgeBorderRadius: 18,
    );

Libraries

sbadgeview