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

Package being developed to help with material design badges implementation.

Dynamic Badges #

Help with dynamic badges of Material Design.

accessibility text

Usage DynamicBadge #

Help with material design badges implementation.


First, you need to import the package:

import 'package:dynamic_badges/dynamic_badges.dart';

Example: #

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

  @override
  Widget build(BuildContext context) {
    return DynamicBadge(
      label: "999",
      childSize: 92,
      child: IconButton(
          iconSize: 92,
          icon: const Icon(
            Icons.chat_bubble_outline_rounded,
          ),
          onPressed: () {}),
    );
  }
}

Example with counter:

Example: #

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

  @override
  Widget build(BuildContext context) {
    return const DynamicBadge.counter(
      count: 1241,
      childSize: 92,
      child: Icon(
        Icons.chat_bubble_outline_rounded,
        size: 92,
      ),
    );
  }
}
11
likes
160
pub points
41%
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