Flutter: is it impossible to customize SliderTheme on iOS?

Viewed 17

I wanted to make a progressbar in a music player like YoutubeMusic. I customized Slider and made an okay result on Android, but on iOS simulator it doesn't show any customized design.

expected design:

expected design:

what it actually looks like on iOS simulator:

what it actually looks like on iOS simulator:

and the code looks like this:

SizedBox(
   width: Get.width,
   height: 1,
   child: SliderTheme(
      data: SliderThemeData(
               overlayShape: SliderComponentShape.noOverlay,
               trackShape: const RectangularSliderTrackShape(),
               trackHeight: 1,
               thumbShape: SliderComponentShape.noThumb,
               thumbColor: Colors.white,
               activeTrackColor: const Color(0xffE1FD2E),
               inactiveTrackColor: Colors.grey[600],
               overlayColor: Colors.transparent
            ),
      child: Slider.adaptive(
                value: realtimePlayingInfos.currentPosition.inSeconds.toDouble(),
                max: realtimePlayingInfos.duration.inSeconds.toDouble() + 3,
                min: -3,
                onChanged: (value) {}
             )
      )
)

is it impossible to customize SliderTheme on iOS or am I doing it in a wrong way?
0 Answers
Related