0 purchases
dynamic badges
Dynamic Badges #
Help with material design badges implementation.
Usage DynamicBadge #
First, you need to import the package:
import 'package:dynamic_badges/dynamic_badges.dart';
copied to clipboard
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,
),
),
);
}
}
copied to clipboard
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,
),
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.