flutter_soloud 1.0.0 copy "flutter_soloud: ^1.0.0" to clipboard
flutter_soloud: ^1.0.0 copied to clipboard

Flutter audio plugin using SoLoud library and FFI. It provides player, basic capture from microphone, 3D audio and more.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_soloud_example/controls.dart';
import 'package:flutter_soloud_example/hello_flutter.dart';
import 'package:flutter_soloud_example/page1.dart';
import 'package:flutter_soloud_example/page2.dart';
import 'package:flutter_soloud_example/page3.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      themeMode: ThemeMode.dark,
      darkTheme: ThemeData.dark(),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return const DefaultTabController(
      length: 4,
      initialIndex: 3,
      child: SafeArea(
        child: Scaffold(
          body: Column(
            children: [
              Controls(),
              TabBar(
                isScrollable: true,
                tabs: [
                  Tab(text: 'hello world!'),
                  Tab(text: 'visualizer'),
                  Tab(text: 'multi track'),
                  Tab(text: '3D audio'),
                ],
              ),
              SizedBox(height: 8),
              Expanded(
                child: TabBarView(
                  physics: NeverScrollableScrollPhysics(),
                  children: [
                    HelloFlutterSoLoud(),
                    Page1(),
                    Page2(),
                    Page3(),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
230
likes
0
pub points
94%
popularity

Publisher

verified publishermarcobavagnoli.com

Flutter audio plugin using SoLoud library and FFI. It provides player, basic capture from microphone, 3D audio and more.

Repository (GitHub)
View/report issues

Topics

#audio #player #games

License

unknown (license)

Dependencies

ffi, flutter, plugin_platform_interface

More

Packages that depend on flutter_soloud