EnvBanner constructor
const
EnvBanner({
- Key? key,
- required String primary,
- required Widget child,
- String? secondary,
- Color color = Colors.red,
- Color textColor = Colors.white,
- double opacity = 0.75,
- double fontSize = 12,
- EnvBannerLocation location = EnvBannerLocation.topEnd,
- bool ignoreMediaPadding = false,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
- 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,
});