audio_flash_manager 1.0.1+3 copy "audio_flash_manager: ^1.0.1+3" to clipboard
audio_flash_manager: ^1.0.1+3 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
0
points
0
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

cupertino_icons, flutter

More

Packages that depend on audio_flash_manager