AppBarFadeEffect.onShrink constructor
AppBarFadeEffect.onShrink({
- Key? key,
- double start = 0,
- double end = 1,
- required AppBarPosition position,
- required Widget child,
The fade-out effect is applied when on shrink the appbar.
Implementation
AppBarFadeEffect.onShrink({
super.key,
double start = 0,
double end = 1,
required AppBarPosition position,
required this.child,
}) : value = position.expandedPercent,
start = 1 - start,
end = 1 - end;