INNER CODE UNIT · Dart

Badge

yako-dev/flutter_badges · lib/src/badge.dart:7

class Badge extends StatefulWidget {
  const Badge({
    super.key,
    this.badgeContent,
    this.child,
    this.badgeStyle = const BadgeStyle(),
    this.badgeAnimation = const BadgeAnimation.slide(),
    this.position,
    this.showBadge = true,
    this.ignorePointer = false,
    this.stackFit = StackFit.loose,
    this.onTap,
  });

  /// The badge child, e.g. cart icon button.
  final Widget? child;

  /// Contains all badge style properties.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…