flutter_audio_games 0.13.1 copy "flutter_audio_games: ^0.13.1" to clipboard
flutter_audio_games: ^0.13.1 copied to clipboard

Widgets useful for creating audio games.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_synthizer/flutter_synthizer.dart';

import 'screens/intro_screen.dart';

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

/// The top level app object.
class MyApp extends StatelessWidget {
  /// Create an instance.
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(final BuildContext context) => ProviderScope(
        child: SynthizerScope(
          child: MaterialApp(
            title: 'Flutter Audio Games Example',
            theme: ThemeData(
              colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
              useMaterial3: true,
            ),
            home: const IntroScreen(),
          ),
        ),
      );
}