opt: use custom scroll feature
This commit is contained in:
parent
e0d759c3bb
commit
e1ab01a97f
@ -16,7 +16,7 @@ const int kDesktopDefaultDisplayWidth = 1080;
|
|||||||
const int kDesktopDefaultDisplayHeight = 720;
|
const int kDesktopDefaultDisplayHeight = 720;
|
||||||
|
|
||||||
/// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse
|
/// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse
|
||||||
const kDefaultScrollAmountMultiplier = 3.0;
|
const kDefaultScrollAmountMultiplier = 10.0;
|
||||||
const kFullScreenEdgeSize = 1.0;
|
const kFullScreenEdgeSize = 1.0;
|
||||||
const kWindowEdgeSize = 4.0;
|
const kWindowEdgeSize = 4.0;
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ class _PeerWidgetState extends State<_PeerWidget> with WindowListener {
|
|||||||
: DesktopScrollWrapper(
|
: DesktopScrollWrapper(
|
||||||
scrollController: _scrollController,
|
scrollController: _scrollController,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
child: ObxValue<RxString>((searchText) {
|
child: ObxValue<RxString>((searchText) {
|
||||||
return FutureBuilder<List<Peer>>(
|
return FutureBuilder<List<Peer>>(
|
||||||
|
@ -13,7 +13,7 @@ class DesktopScrollWrapper extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ImprovedScrolling(
|
return ImprovedScrolling(
|
||||||
scrollController: scrollController,
|
scrollController: scrollController,
|
||||||
enableCustomMouseWheelScrolling: false,
|
enableCustomMouseWheelScrolling: true,
|
||||||
customMouseWheelScrollConfig: const CustomMouseWheelScrollConfig(
|
customMouseWheelScrollConfig: const CustomMouseWheelScrollConfig(
|
||||||
scrollAmountMultiplier: kDefaultScrollAmountMultiplier),
|
scrollAmountMultiplier: kDefaultScrollAmountMultiplier),
|
||||||
child: child,
|
child: child,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user