ScrollAnimatedFab constructor
const
ScrollAnimatedFab({
- Key? key,
- required Widget fab,
- AnimatedFabController? controller,
- Duration duration = _kDefaultDuration,
- Curve curve = _kDefaultCurve,
- required ScrollController scrollController,
- ScrollAnimatedCondition condition = ScrollAnimatedCondition.offset,
- double offset = _kDefaultScrollOffset,
- Widget customBuilder()?,
- bool customBehavior(
- ScrollPosition pos
Implementation
const ScrollAnimatedFab({
Key? key,
required this.fab,
this.controller,
this.duration = _kDefaultDuration,
this.curve = _kDefaultCurve,
required this.scrollController,
this.condition = ScrollAnimatedCondition.offset,
this.offset = _kDefaultScrollOffset,
this.customBuilder,
this.customBehavior,
}) : assert(offset >= 0),
super(key: key);