JDraggableView class

Define a custom widget JDraggableView for a draggable view with various configuration options.

Inheritance

Constructors

JDraggableView({Key? key, Widget? leading, Widget title = const SizedBox(), bool centerTitle = true, List<Widget>? actions, bool alwaysShowLeadingAndAction = false, bool alwaysShowTitle = false, double headerExpandedHeight = 0.35, Widget expandedHeader = const SizedBox(), Widget? expandedHeaderBottomBar, Color? backgroundColor, Color? appBarColor, double curvedBodyRadius = 20, List<Widget> body = const [], Widget? drawer, bool fullyStretchable = false, double stretchTriggerOffset = 200, Widget? expandedBody, double stretchMaxHeight = 0.9, Widget? bottomSheet, double bottomNavigationBarHeight = kBottomNavigationBarHeight, Widget? bottomNavigationBar, Widget? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, FloatingActionButtonAnimator? floatingActionButtonAnimator, ScrollPhysics? physics, ScrollController? controller, RefreshCallback? onRefresh, RefreshIndicatorTriggerMode refreshTriggerMode = RefreshIndicatorTriggerMode.onEdge, Color? refreshBackColor, Color? refreshColor, double refreshDisplacement = 40.0, double refreshStrokeWidth = RefreshProgressIndicator.defaultStrokeWidth})
Constructor for the draggable view widget.
const

Properties

actions List<Widget>?
Nullable List Widgets actions
final
alwaysShowLeadingAndAction bool
bool parameters centerTitle & alwaysShowTitle & alwaysShowLeadingAndAction & fullyStretchable
final
alwaysShowTitle bool
bool parameters centerTitle & alwaysShowTitle & alwaysShowLeadingAndAction & fullyStretchable
final
appBarColor Color?
Nullable Colors backgroundColor & appBarColor & refreshBackColor & refreshColor
final
backgroundColor Color?
Nullable Colors backgroundColor & appBarColor & refreshBackColor & refreshColor
final
body List<Widget>
Not Nullable List Widgets body
final
bottomNavigationBar Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
bottomNavigationBarHeight double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
bottomSheet Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
centerTitle bool
bool parameters centerTitle & alwaysShowTitle & alwaysShowLeadingAndAction & fullyStretchable
final
controller ScrollController?
ScrollController controller
final
curvedBodyRadius double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
drawer Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
expandedBody Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
expandedHeader Widget
Not Nullable Widgets title & expandedHeader
final
expandedHeaderBottomBar Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
floatingActionButton Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
floatingActionButtonAnimator FloatingActionButtonAnimator?
FloatingActionButtonAnimator floatingActionButtonAnimator
final
floatingActionButtonLocation FloatingActionButtonLocation?
FloatingActionButtonLocation floatingActionButtonLocation
final
fullyStretchable bool
bool parameters centerTitle & alwaysShowTitle & alwaysShowLeadingAndAction & fullyStretchable
final
hashCode int
The hash code for this object.
no setterinherited
headerExpandedHeight double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Nullable Widgets? leading & drawer & expandedHeaderBottomBar & expandedBody & floatingActionButton & bottomSheet & bottomNavigationBar*
final
onRefresh RefreshCallback?
RefreshCallback onRefresh
final
physics ScrollPhysics?
ScrollPhysics physics
final
refreshBackColor Color?
Nullable Colors backgroundColor & appBarColor & refreshBackColor & refreshColor
final
refreshColor Color?
Nullable Colors backgroundColor & appBarColor & refreshBackColor & refreshColor
final
refreshDisplacement double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
refreshStrokeWidth double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
refreshTriggerMode RefreshIndicatorTriggerMode
RefreshIndicatorTriggerMode refreshTriggerMode
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stretchMaxHeight double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
stretchTriggerOffset double
Not Nullable double refreshDisplacement & refreshStrokeWidth & headerExpandedHeight & bottomNavigationBarHeight & stretchMaxHeight & curvedBodyRadius & stretchTriggerOffset
final
title Widget
Not Nullable Widgets title & expandedHeader
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited