sounds 0.9.3 sounds: ^0.9.3 copied to clipboard
Sounds provide a complete api and Widgets for audio playback and recording. Both iOS and Android are supported.
/*
* This file is part of Sounds .
*
* Sounds is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License
* version 3 (LGPL3) as published by the Free Software Foundation.
*
* Sounds is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the Lesser GNU General Public License
* along with Sounds . If not, see <https://www.gnu.org/licenses/>.
*/
import 'package:flutter/material.dart';
import 'demo_util/demo_body.dart';
/// demonstrates the recording widget linked to a playback widget.
void main() {
runApp(MyApp());
}
/// Example app.
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Sounds'),
),
body: MainBody(),
),
);
}
@override
void dispose() {
super.dispose();
}
}