MorphingSurface constructor
const
MorphingSurface({
- Key? key,
- required double progress,
- required Rect startRect,
- required Rect endRect,
- required Widget collapsedBuilder(
- BuildContext context,
- double progress
- required Widget expandedBuilder(
- BuildContext context,
- double progress
- double startRadius = 16.0,
- double endRadius = 0.0,
- double maxElevation = 12.0,
- Color? surfaceColor,
- Color? scrimColor,
- Clip clipBehavior = Clip.antiAlias,
Implementation
const MorphingSurface({
super.key,
required this.progress,
required this.startRect,
required this.endRect,
required this.collapsedBuilder,
required this.expandedBuilder,
this.startRadius = 16.0,
this.endRadius = 0.0,
this.maxElevation = 12.0,
this.surfaceColor,
this.scrimColor,
this.clipBehavior = Clip.antiAlias,
});