DraggableWidget class
Constructors
DraggableWidget ({Key ? key , required Widget child , double horizontalSpace = 0 , double verticalSpace = 0 , AnchoringPosition initialPosition = AnchoringPosition.bottomRight , bool intialVisibility = true , double bottomMargin = 0 , double topMargin = 0 , double statusBarHeight = 24 , double shadowBorderRadius = 10 , DragController ? dragController , double dragAnimationScale = 1.1 , Duration touchDelay = Duration.zero , BoxShadow normalShadow = const BoxShadow(color: Colors.black38, offset: Offset(0, 4), blurRadius: 2) , BoxShadow draggingShadow = const BoxShadow(color: Colors.black38, offset: Offset(0, 10), blurRadius: 10) })
Properties
bottomMargin
→ double
The top bottom pargin to create the bottom boundary for the widget, for example if you have a BottomNavigationBar ,
then you may need to set the bottom boundary so that the draggable button can't get on top of the BottomNavigationBar
final
child
→ Widget
The widget that will be displayed as dragging widget
final
dragAnimationScale
→ double
How much should the DraggableWidget be scaled when it is being dragged, default to 1.1
final
dragController
→ DragController ?
A drag controller to show/hide or move the widget around the screen
final
draggingShadow
→ BoxShadow
BoxShadow when the widget is being dragged
final
hashCode
→ int
The hash code for this object.
no setter inherited
horizontalSpace
→ double
The horizontal padding around the widget
final
initialPosition
→ AnchoringPosition
Intial location of the widget, default to AnchoringPosition.bottomRight
final
intialVisibility
→ bool
Intially should the widget be visible or not, default to true
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
normalShadow
→ BoxShadow
BoxShadow when the widget is not being dragged, default to
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
shadowBorderRadius
→ double
Shadow's border radius for the draggable widget, default to 10
final
statusBarHeight
→ double
Status bar's height, default to 24
final
topMargin
→ double
The top bottom pargin to create the top boundary for the widget, for example if you have a AppBar ,
then you may need to set the bottom boundary so that the draggable button can't get on top of the AppBar
final
touchDelay
→ Duration
Touch Delay Duration. Default value is zero. When set, drag operations will trigger after the duration.
final
verticalSpace
→ double
The vertical padding around the widget
final