flutter_volume_slider 1.0.2 flutter_volume_slider: ^1.0.2 copied to clipboard
A flutter widget to control volume in each Android & iOS.
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: Center(
child: FlutterVolumeSlider(
sliderActiveColor: Colors.blue,
sliderInActiveColor: Colors.grey,
),
),
),
);
}
}