FlutterVolumeSlider

pub package

A flutter widget to control volume in each Android & iOS.

How to use :

Just add FlutterVolumeSlider Widget anywhere you want to control volume.

Works Properly on Android and iOS.

Display Horizontally :

...

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlutterVolumeSlider(
            display: Display.HORIZONTAL,
            sliderActiveColor: Colors.blue,
            sliderInActiveColor: Colors.grey,
          ),
        ),
      ),
    );
  }

Display Vertically :

...

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlutterVolumeSlider(
            display: Display.VERTICAL,
            sliderActiveColor: Colors.blue,
            sliderInActiveColor: Colors.grey,
          ),
        ),
      ),
    );
  }

Libraries

flutter_volume_slider