HeroContainer constructor
const
HeroContainer({
- Key? key,
- Color? openedColor,
- Color? closedColor,
- ShapeBorder? openedShape,
- ShapeBorder? closedShape,
- HeroContianerClosedCallback? onClosed,
- double openedElevation = 4.0,
- double closedElevation = 1.0,
- BoxFit openedFit = BoxFit.fitWidth,
- BoxFit closedFit = BoxFit.fitWidth,
- AlignmentGeometry closedAlignment = Alignment.topCenter,
- AlignmentGeometry openedAlignemnt = Alignment.topCenter,
- Duration transitionDuration = const Duration(milliseconds: 300),
- Curve transitionCurve = Curves.fastOutSlowIn,
- HeroContianerFlightShuttleBuilder? flightShuttleBuilder,
- required WidgetBuilder openedBuilder,
- required HeroContainerBuilder closedBuilder,
Creates a hero container with customizable transition properties.
Implementation
const HeroContainer({
super.key,
this.openedColor,
this.closedColor,
this.openedShape,
this.closedShape,
this.onClosed,
this.openedElevation = 4.0,
this.closedElevation = 1.0,
this.openedFit = BoxFit.fitWidth,
this.closedFit = BoxFit.fitWidth,
this.closedAlignment = Alignment.topCenter,
this.openedAlignemnt = Alignment.topCenter,
this.transitionDuration = const Duration(milliseconds: 300),
this.transitionCurve = Curves.fastOutSlowIn,
this.flightShuttleBuilder,
required this.openedBuilder,
required this.closedBuilder,
});