build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Describes the part of the user interface represented by this widget.

The framework calls this method when this widget is inserted into the tree in a given BuildContext and when the dependencies of this widget change.

Implementation

@override
Widget build(BuildContext context) {
  return AnimatedPositioned(
    duration: animationsDuration,
    top: context.height * .5 - 162,
    left: -100,
    child: Transform(
      alignment: FractionalOffset.center,
      // Rotate sliders by 90 degrees
      transform: Matrix4.identity()..rotateZ(270 * 3.1415927 / 180),
      child: SizedBox(
        width: 248,
        child: Slider(
          value: selectedValue,
          min: 14,
          max: 74,
          activeColor: Colors.white,
          inactiveColor: Colors.white.withOpacity(0.4),
          onChanged: onChanged,
        ),
      ),
    ),
  );
}