How to make it in flutter?

Viewed 36

This is what I want to make in a flutter. This is like a slider that controls the vibration of the mobile.

I have tried this:

Container(
                    padding: EdgeInsets.only(top: 25),
                    child: SliderTheme(
                      data: SliderThemeData(
                        trackHeight: MediaQuery.of(context).size.width / 3.3,
                      ),
                      child: RotatedBox(
                        quarterTurns: 3,
                        child: Slider(
                          activeColor: Color.fromARGB(255, 255, 45, 85),
                          inactiveColor: Color.fromARGB(255, 255, 218, 218),
                          thumbColor: Colors.white,
                          value: value1,
                          min: 0,
                          max: 100,
                          onChanged: (value) {
                            setState(() {
                              value1 = value;
                            });
                          },
                        ),
                      ),
                    )),

This is what I want.

0 Answers
Related