CrossScroll class
This code has been design by Mehran Ullah
email: m.jan9396@gmail.com,
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CrossScroll
Constructors
- CrossScroll({Widget? child, CrossScrollDesign? verticalScroll, CrossScrollDesign? horizontalScroll, ScrollController? horizontalScrollController, ScrollController? verticalScrollController, Color? dimColor, Color? normalColor, Color? hoverColor, CrossScrollTrack? horizontalBar = const CrossScrollTrack(), CrossScrollTrack? verticalBar = const CrossScrollTrack(), Key? key})
-
CrossScroll is a Widget that can scroll on multiple directions and
support all properties of SingleChildScrollView.
Keep
isAlwaysShown:true
while design for Android or IOS so you will be able to see your thumb position on screen while scrolling with onDrag property i.e: CrossScrollBar( showTrackOnHover: false, trackVisibility: false, isAlwaysShown: true),const
Properties
- child → Widget?
-
final
- dimColor → Color?
-
dim Color
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalBar → CrossScrollTrack?
-
Modify horizontal scroll thumb and track
final
- horizontalScroll → CrossScrollDesign?
-
Modify horizontal scrolls
final
- horizontalScrollController → ScrollController?
-
An object that can be used to control the position to which this scroll
view is scrolled.
final
- hoverColor → Color?
-
Shown this color when you hovered over a thumb
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- normalColor → Color?
-
Normal thumb color
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalBar → CrossScrollTrack?
-
Modify Vertical scroll thumb and track
final
- verticalScroll → CrossScrollDesign?
-
Modify vertical scrolls
final
- verticalScrollController → ScrollController?
-
An object that can be used to control the position to which this scroll
view is scrolled.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CrossScroll> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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