opt: use const variable

This commit is contained in:
Kingtous
2022-09-19 17:10:12 +08:00
parent 21eb7bd165
commit c2f516f57f
6 changed files with 17 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import 'package:flutter/widgets.dart';
import 'package:flutter_hbb/consts.dart';
import 'package:flutter_improved_scrolling/flutter_improved_scrolling.dart';
class DesktopScrollWrapper extends StatelessWidget {
@@ -13,8 +14,8 @@ class DesktopScrollWrapper extends StatelessWidget {
return ImprovedScrolling(
scrollController: scrollController,
enableCustomMouseWheelScrolling: false,
customMouseWheelScrollConfig:
const CustomMouseWheelScrollConfig(scrollAmountMultiplier: 3.0),
customMouseWheelScrollConfig: const CustomMouseWheelScrollConfig(
scrollAmountMultiplier: kDefaultScrollAmountMultiplier),
child: child,
);
}