ThemeDraggableSheet constructor

const ThemeDraggableSheet({
  1. double initialChildSize = 0.5,
  2. double minChildSize = 0.25,
  3. double maxChildSize = 1.0,
  4. bool expand = false,
  5. bool snap = false,
  6. List<double>? snapSizes,
  7. Duration? snapAnimationDuration,
  8. bool shouldCloseOnMinExtent = true,
})

Creates an instance of ThemeDraggableSheet with customizable settings.

Example:

ThemeDraggableSheet(
  initialChildSize: 0.5,
  minChildSize: 0.25,
  maxChildSize: 1.0,
  expand: false,
  snap: true,
  snapSizes: [0.25, 0.5, 0.75],
  snapAnimationDuration: Duration(milliseconds: 200),
  shouldCloseOnMinExtent: true,
)

Implementation

const ThemeDraggableSheet({
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 1.0,
  this.expand = false,
  this.snap = false,
  this.snapSizes,
  this.snapAnimationDuration,
  this.shouldCloseOnMinExtent = true,
});