FSliderStyles.inherit constructor

FSliderStyles.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FStyle style,
})

Creates a FSliderStyles that inherits its properties.

Implementation

FSliderStyles.inherit({required FColors colors, required FTypography typography, required FStyle style})
  : this(
      horizontalStyle: .inherit(
        colors: colors,
        typography: typography,
        style: style,
        labelAnchor: .topCenter,
        labelOffset: 10,
        descriptionPadding: const .only(top: 10),
        childPadding: const .only(top: 10, bottom: 20, left: 10, right: 10),
      ),
      verticalStyle: .inherit(
        colors: colors,
        typography: typography,
        style: style,
        labelAnchor: .centerRight,
        labelOffset: -10,
        tooltipTipAnchor: FTouch.primary ? .bottomCenter : .centerLeft,
        tooltipThumbAnchor: FTouch.primary ? .topCenter : .centerRight,
        descriptionPadding: const .only(top: 5),
        childPadding: const .all(10),
      ),
    );