HeroSectionProps class
Hero section component properties.
Constructors
-
HeroSectionProps({String? headline, Widget? headlineComponent, String? subheadline, Widget? primaryCta, Widget? secondaryCta, Widget? badge, Widget? promoBanner, Widget? media, bool centered = true, double verticalPadding = 80, double maxWidth = 800, List<
HeroStatItem> ? stats, bool showBackgroundGlow = false, String? glowColor}) -
const
Properties
- badge → Widget?
-
final
- centered → bool
-
final
- glowColor → String?
-
Custom glow color (CSS color value). Defaults to primary color with transparency.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → String?
-
Plain text headline. Use
headlineComponentfor rich content.final - headlineComponent → Widget?
-
Custom headline component (e.g., with gradient text).
Takes precedence over
headlineif both are provided.final - maxWidth → double
-
final
- media → Widget?
-
final
- primaryCta → Widget?
-
final
- promoBanner → Widget?
-
Optional promo banner component displayed above the headline.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryCta → Widget?
-
final
- showBackgroundGlow → bool
-
Whether to show a radial gradient glow effect behind the content.
final
-
stats
→ List<
HeroStatItem> ? -
Stats to display below CTAs (e.g., uptime, servers, deploy time).
final
- subheadline → String?
-
final
- verticalPadding → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited