FlutterDraggableWidget class
Constructors
-
FlutterDraggableWidget({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)})
-
const
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 FlutterDraggableWidget 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 setterinherited
-
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.
finalinherited
-
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 setterinherited
-
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