ElScrollbar constructor
const
ElScrollbar({
- Key? key,
- required Widget child,
- ElScrollbarShowMode showMode = ElScrollbarShowMode.hover,
- ScrollController? controller,
- double thickness = 8.0,
- OutlinedBorder? shape,
- Radius radius = const Radius.circular(4.0),
- Radius? trackRadius,
- double mainAxisMargin = 0.0,
- double crossAxisMargin = 1.0,
- EdgeInsets? padding,
- double minThumbLength = 36.0,
- Color trackColor = Colors.transparent,
- Color trackBorderColor = Colors.transparent,
- bool paintSecondTrackBorder = false,
- double trackBorderWidth = 1.0,
- Color thumbColor = const Color.fromRGBO(144, 147, 153, .45),
- Color thumbActiveColor = const Color.fromRGBO(144, 147, 153, .9),
- bool ignorePointer = false,
- bool ignoreTrackPointer = false,
- Duration fadeDuration = const Duration(milliseconds: 200),
- Duration timeToFade = const Duration(milliseconds: 1000),
- Duration trackScrollDuration = const Duration(milliseconds: 350),
- ScrollbarOrientation? scrollbarOrientation,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
Element UI 滚动条,由于可以通过 ScrollConfiguration 配置默认滚动条,所以并未提供 ThemeData 配置
Implementation
const ElScrollbar({
super.key,
required this.child,
this.showMode = ElScrollbarShowMode.hover,
this.controller,
this.thickness = 8.0,
this.shape,
this.radius = const Radius.circular(4.0),
this.trackRadius,
this.mainAxisMargin = 0.0,
this.crossAxisMargin = 1.0,
this.padding,
this.minThumbLength = 36.0,
this.trackColor = Colors.transparent,
this.trackBorderColor = Colors.transparent,
this.paintSecondTrackBorder = false,
this.trackBorderWidth = 1.0,
this.thumbColor = const Color.fromRGBO(144, 147, 153, .45),
this.thumbActiveColor = const Color.fromRGBO(144, 147, 153, .9),
this.ignorePointer = false,
this.ignoreTrackPointer = false,
this.fadeDuration = const Duration(milliseconds: 200),
this.timeToFade = const Duration(milliseconds: 1000),
this.trackScrollDuration = const Duration(milliseconds: 350),
this.scrollbarOrientation,
this.notificationPredicate = defaultScrollNotificationPredicate,
});