MorphingSurface constructor

const MorphingSurface({
  1. Key? key,
  2. required double progress,
  3. required Rect startRect,
  4. required Rect endRect,
  5. required Widget collapsedBuilder(
    1. BuildContext context,
    2. double progress
    ),
  6. required Widget expandedBuilder(
    1. BuildContext context,
    2. double progress
    ),
  7. double startRadius = 16.0,
  8. double endRadius = 0.0,
  9. double maxElevation = 12.0,
  10. Color? surfaceColor,
  11. Color? scrimColor,
  12. 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,
});