StretchablePanelWidget constructor
const
StretchablePanelWidget({
- Key? key,
- Widget? triggerWidget,
- Widget? stretchWidget,
- StretchWidgetsBuilder? widgetsBuilder,
- Duration? duration = const Duration(milliseconds: 300),
- Duration? reverseDuration,
- bool isShowStretchWidgetOnInit = false,
- StretchAnimatedBuilder? animatedBuilder,
- StretchAnimatingBuilder? decorateChildOnAnimating,
- void onStateInited(
- StretchablePanelState state
- void onStateDisposed(
- StretchablePanelState state
- Curve? curve = Curves.ease,
Implementation
const StretchablePanelWidget({
super.key,
this.triggerWidget,
this.stretchWidget,
this.widgetsBuilder,
this.duration = const Duration(milliseconds: 300),
this.reverseDuration,
this.isShowStretchWidgetOnInit = false,
this.animatedBuilder,
this.decorateChildOnAnimating,
this.onStateInited,
this.onStateDisposed,
this.curve = Curves.ease,
}) : assert((triggerWidget != null && stretchWidget != null) || widgetsBuilder != null,
'WidgetsBuilder or triggerWidget & stretchWidget must not be null at the same time');