EnvBanner constructor

const EnvBanner({
  1. Key? key,
  2. required String primary,
  3. required Widget child,
  4. String? secondary,
  5. Color color = Colors.red,
  6. Color textColor = Colors.white,
  7. double opacity = 0.75,
  8. double fontSize = 12,
  9. EnvBannerLocation location = EnvBannerLocation.topEnd,
  10. bool ignoreMediaPadding = false,
  11. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
  12. EdgeInsetsGeometry margin = EdgeInsets.zero,
})

Create a EnvBanner

The primary and child parameters must not be null.

Implementation

const EnvBanner({
  super.key,
  required this.primary,
  required this.child,
  this.secondary,
  this.color = Colors.red,
  this.textColor = Colors.white,
  this.opacity = 0.75,
  this.fontSize = 12,
  this.location = EnvBannerLocation.topEnd,
  this.ignoreMediaPadding = false,
  this.padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
  this.margin = EdgeInsets.zero,
});