Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 865 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 865 Bytes

Badges for Flutter

A flutter package for creating badges.

Package on Pub

Installing:

In your pubspec.yaml

dependencies:
  badges: ^0.0.6

Example Usage:

import 'package:badges/badges.dart';

BadgeIconButton(
                itemCount: _counter, // required
                icon: Icon(Icons.shopping_cart), // required
                badgeColor: Colors.green, // default: Colors.red
                badgeTextColor: Colors.white, // default: Colors.white
                hideZeroCount: true, // default: true
                onPressed: _increment),
                

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details