flutter_volume_slider 1.0.6 copy "flutter_volume_slider: ^1.0.6" to clipboard
flutter_volume_slider: ^1.0.6 copied to clipboard

A flutter widget to control volume in each Android & iOS natively. Just add the dependency and call FlutterVolumeSlider() widget where you want.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_volume_slider/flutter_volume_slider.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Container(
          child: Padding(
            padding: EdgeInsets.all(10.0),
            child: ListView(
              children: <Widget>[
                FlutterVolumeSlider(
                  display: Display.HORIZONTAL,
                  sliderActiveColor: Colors.blue,
                  sliderInActiveColor: Colors.grey,
                ),
                FlutterVolumeSlider(
                  display: Display.VERTICAL,
                  sliderActiveColor: Colors.blue,
                  sliderInActiveColor: Colors.grey,
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
8
likes
40
pub points
41%
popularity

Publisher

unverified uploader

A flutter widget to control volume in each Android & iOS natively. Just add the dependency and call FlutterVolumeSlider() widget where you want.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, provider

More

Packages that depend on flutter_volume_slider