fancy_audio_recorder 0.0.1 copy "fancy_audio_recorder: ^0.0.1" to clipboard
fancy_audio_recorder: ^0.0.1 copied to clipboard

Simple audio recorder ready to use (Like instant soup).

example/lib/main.dart

import 'dart:developer';

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

void main() => runApp(const MyApp());

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String? test;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Fancy Sample App'),
        ),
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              AudioRecorderButton(
                maxRecordDuration: const Duration(seconds: 80),
                onRecordComplete: (value) {
                  log('$value');
                  setState(() {
                    test = value;
                  });
                },
              ),
              Text('$test'),
            ],
          ),
        ),
      ),
    );
  }
}
12
likes
110
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Simple audio recorder ready to use (Like instant soup).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

audioplayers, eval_ex, flutter, record

More

Packages that depend on fancy_audio_recorder