volume_flash_plugin 0.0.2 copy "volume_flash_plugin: ^0.0.2" to clipboard
volume_flash_plugin: ^0.0.2 copied to clipboard

retracted

A Flutter package that provides easy controls for adjusting volume and toggling the flashlight on both Android and iOS devices. Ideal for creating multimedia applications.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const ExampleScreen(),
    );
  }
}

class ExampleScreen extends StatelessWidget {
  const ExampleScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return VolumeFlashPlugin(
      showIncreaseVolumeButton: true,
      showDecreaseVolumeButton: true,
      showFlashlightButton: true,
      flashlightButtonText: "Flash Light",
      decreaseVolumeButtonText: "Decrease Volume",
      increaseVolumeButtonText: "Increase Volume",
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12),
      ),
      buttonWidth: 200,
      buttonBackgroundColor: Colors.red,
    );
  }
}
7
likes
0
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides easy controls for adjusting volume and toggling the flashlight on both Android and iOS devices. Ideal for creating multimedia applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on volume_flash_plugin

Packages that implement volume_flash_plugin