audio_flash_manager 1.0.1+5 copy "audio_flash_manager: ^1.0.1+5" to clipboard
audio_flash_manager: ^1.0.1+5 copied to clipboard

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/example.dart

import 'package:audio_flash_manager/audio_testing.dart';
import 'package:flutter/material.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 AudioTesting(
      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,
    );
  }
}
2
likes
150
points
10
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)

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on audio_flash_manager