OpscrollWeb class
Scrolling Animation Options
are Fading
, Drop
and Circle
animation
You have to choice one scrolling animations.
Scrolling Options
are Touch Floating Action Button
and Scroll
You can active every options for your widgets.
onePageChildren is your One Page widgets. This widget size is initial Full device screen size.
You must to create your one page widget's inside, responsive in your code.
scrollCurve is scrolling Curve value for PageController. Try every Curves!
and find your suitable scroll animations for your OPS.
scrollSpeed is scrolling duration for your OPS.
You should give less duration for speedy scrolling or vice versa
scrollDirection is your PageView scrolling axis.
PageController is OPS controller.
isFloatingButtonActive is allow to scrolling by Floating Action Buttons
also you can change the color variable with
floatingButtonSplashColor floatingButtonBackgroundColor
isTouchScrollingActive is allows to scrolling by Tapping.
Be careful if you are using Gesture Detector in your onePageChildren
Should look at https://flutter.dev/docs/development/ui/advanced/gestures#gesture-disambiguation
onTapGesture you can define your own onTap functions with this callback.
default function is scroll to next page.
isFadingScroll
is provide Fading effect while scrolling
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- OpscrollWeb
Constructors
-
OpscrollWeb({Key? key, required List<
Widget> onePageChildren, required PageController pageController, ScrollingAnimationOptions scrollingAnimationOptions = ScrollingAnimationOptions.Default, VoidCallback? onTapGesture, Color floatingButtonBackgroundColor = Colors.grey, Color floatingButtonSplashColor = Colors.grey, bool isFloatingButtonActive = false, bool isTouchScrollingActive = false, Color dropColor = Colors.blueAccent, Curve scrollCurve = Curves.easeIn, Duration scrollSpeed = const Duration(milliseconds: 900), Axis scrollDirection = Axis.vertical}) -
const
Properties
- dropColor → Color
-
final
- floatingButtonBackgroundColor → Color
-
final
- floatingButtonSplashColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFloatingButtonActive → bool
-
Floating Action Button
final
- isTouchScrollingActive → bool
-
Scrolling Options
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onePageChildren
→ List<
Widget> -
final
- onTapGesture → VoidCallback?
-
final
- pageController → PageController
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollCurve → Curve
-
final
- scrollDirection → Axis
-
final
- scrollingAnimationOptions → ScrollingAnimationOptions
-
final
- scrollSpeed → Duration
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< OpscrollWeb> -
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
Static Properties
-
platformVersion
→ Future<
String?> -
no setter