dynamic_badges 1.0.0 copy "dynamic_badges: ^1.0.0" to clipboard
dynamic_badges: ^1.0.0 copied to clipboard

Package being developed to help with material design badges implementation.

Dynamic Badges #

Help with material design badges implementation.


accessibility text

Usage DynamicBadge #


First, you need to import the package:

import 'package:dynamic_badges/dynamic_badges.dart';

Counter example:

class Example extends StatelessWidget {
  const Example({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DynamicBadge(
      count: 1000,
      child: IconButton(
        onPressed: () {},
        icon: const Icon(
          Icons.groups_2_outlined,
        ),
      ),
    );
  }
}

Small Example:

class Example extends StatelessWidget {
  const Example({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const DynamicBadge.small(
      child: Icon(
        Icons.email,
        size: 48,
      ),
    );
  }
}
10
likes
120
pub points
49%
popularity

Publisher

verified publisherrdrgbaioco.dev

Package being developed to help with material design badges implementation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dynamic_badges