Skip to content

ThePredators/FlutterVolumeSlider

Repository files navigation

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,
          ),
        ),
      ),
    );
  }

About

A flutter volume controll slider for both Android & iOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published