sbadgeview 1.0.1
sbadgeview: ^1.0.1 copied to clipboard
Great flutter badge view for shoung counts of notifications from the database and other counts, including notifications that notify users of anything required attention to.
SBadgeView #
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 #
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,
);