FloatingController constructor
FloatingController(
- BuildContext context, {
- double collapsedHeight = 170,
- bool isDraggable = false,
- double topMargin = 75,
- double bottomMargin = 20,
- double padding = 20,
- 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,
});