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

A funny Flutter package that plays a "FAAAAH" meme sound whenever an error occurs.

example/lib/main.dart

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

void main() {
  // Optional: enable global error sound for real Flutter errors
  Faaah.enableGlobalErrorSound();
  
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: FaaahDemoScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('FAAAAH Demo 😅')),
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            // Play the FAAAah sound instantly
            await Faaah.play();
          },
          child: const Text(
            'Press for FAAAah!',
            style: TextStyle(fontSize: 24),
          ),
        ),
      ),
    );
  }
}
2
likes
150
points
143
downloads

Publisher

unverified uploader

Weekly Downloads

A funny Flutter package that plays a "FAAAAH" meme sound whenever an error occurs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

audioplayers, flutter

More

Packages that depend on faaah