TrackConfiguration constructor
const
TrackConfiguration({
- double height = 8.0,
- double border = 1.0,
- Color borderColor = Colors.black,
- Gradient activeGradient = const LinearGradient(colors: [Colors.blue, Colors.red]),
- Gradient inactiveGradient = const LinearGradient(colors: [Colors.grey, Colors.grey]),
- double borderRadius = 30.0,
- bool displayOuterShadows = false,
- bool displayInnerShadows = false,
- bool constrainThumbInTrack = true,
- Shadow innerTopShadow = const Shadow(spread: 9, offset: Offset(-5, -5), inflate: 0, radius: 30),
- Shadow innerBottomShadow = const Shadow(spread: 4, offset: Offset(5, 5), inflate: 0, radius: 30),
- Shadow outerTopShadow = const Shadow(spread: 1, offset: Offset(-2, -2), inflate: 0, radius: 30),
- Shadow outerBottomShadow = const Shadow(spread: 1, offset: Offset(2, 2), inflate: 0, radius: 30),
Implementation
const TrackConfiguration({
this.height = 8.0,
this.border = 1.0,
this.borderColor = Colors.black,
this.activeGradient =
const LinearGradient(colors: [Colors.blue, Colors.red]),
this.inactiveGradient =
const LinearGradient(colors: [Colors.grey, Colors.grey]),
this.borderRadius = 30.0,
this.displayOuterShadows = false,
this.displayInnerShadows = false,
this.constrainThumbInTrack = true,
this.innerTopShadow =
const Shadow(spread: 9, offset: Offset(-5, -5), inflate: 0, radius: 30),
this.innerBottomShadow =
const Shadow(spread: 4, offset: Offset(5, 5), inflate: 0, radius: 30),
this.outerTopShadow =
const Shadow(spread: 1, offset: Offset(-2, -2), inflate: 0, radius: 30),
this.outerBottomShadow =
const Shadow(spread: 1, offset: Offset(2, 2), inflate: 0, radius: 30),
});