OpenContainer<T extends Object?> constructor
const
OpenContainer<T extends Object?> ({
- Key? key,
- Color closedColor = Colors.white,
- Color openColor = Colors.white,
- Color? middleColor,
- double closedElevation = 1.0,
- double openElevation = 4.0,
- ShapeBorder closedShape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(4.0))),
- ShapeBorder openShape = const RoundedRectangleBorder(),
- ClosedCallback<
T?> ? onClosed, - required CloseContainerBuilder closedBuilder,
- required OpenContainerBuilder<
T> openBuilder, - bool tappable = true,
- Duration transitionDuration = const Duration(milliseconds: 300),
- ContainerTransitionType transitionType = ContainerTransitionType.fade,
- RouteSettings? routeSettings,
- Clip clipBehavior = Clip.antiAlias,
Creates an OpenContainer.
All arguments except for key
must not be null. The arguments
openBuilder
and closedBuilder
are required.
Implementation
const OpenContainer({
super.key,
this.closedColor = Colors.white,
this.openColor = Colors.white,
this.middleColor,
this.closedElevation = 1.0,
this.openElevation = 4.0,
this.closedShape = const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(4.0)),
),
this.openShape = const RoundedRectangleBorder(),
this.onClosed,
required this.closedBuilder,
required this.openBuilder,
this.tappable = true,
this.transitionDuration = const Duration(milliseconds: 300),
this.transitionType = ContainerTransitionType.fade,
this.useRootNavigator = false,
this.routeSettings,
this.clipBehavior = Clip.antiAlias,
});