ImprovedScrolling constructor
const
ImprovedScrolling({
- Key? key,
- required ScrollController scrollController,
- bool enableMMBScrolling = false,
- bool enableKeyboardScrolling = false,
- bool enableCustomMouseWheelScrolling = false,
- MMBScrollConfig mmbScrollConfig = const MMBScrollConfig(),
- KeyboardScrollConfig keyboardScrollConfig = const KeyboardScrollConfig(),
- CustomMouseWheelScrollConfig customMouseWheelScrollConfig = const CustomMouseWheelScrollConfig(),
- void onScroll(
- double offset
- void onMMBScrollStateChanged(
- bool scrollingActive
- void onMMBScrollCursorPositionUpdate(
- Offset localCursorOffset,
- MMBScrollCursorActivity cursorScrollActivity
- required Widget child,
Constructor
Implementation
const ImprovedScrolling({
Key? key,
required this.scrollController,
this.enableMMBScrolling = false,
this.enableKeyboardScrolling = false,
this.enableCustomMouseWheelScrolling = false,
this.mmbScrollConfig = const MMBScrollConfig(),
this.keyboardScrollConfig = const KeyboardScrollConfig(),
this.customMouseWheelScrollConfig = const CustomMouseWheelScrollConfig(),
this.onScroll,
this.onMMBScrollStateChanged,
this.onMMBScrollCursorPositionUpdate,
required this.child,
}) : super(key: key);