FloatingController constructor

FloatingController(
  1. BuildContext context, {
  2. double collapsedHeight = 170,
  3. bool isDraggable = false,
  4. double topMargin = 75,
  5. double bottomMargin = 20,
  6. double padding = 20,
  7. FloatingPosition initialPosition = FloatingPosition.bottomRight,
})

Creates a FloatingController with the given parameters.

The context is required to access the MediaQuery data. The collapsedHeight, topMargin, bottomMargin, padding, and initialPosition are optional parameters with default values.

Implementation

FloatingController(
  this.context, {
  this.collapsedHeight = 170,
  this.isDraggable = false,
  this.topMargin = 75,
  this.bottomMargin = 20,
  this.padding = 20,
  this.initialPosition = FloatingPosition.bottomRight,
});