social_media_recorder 0.1.34 copy "social_media_recorder: ^0.1.34" to clipboard
social_media_recorder: ^0.1.34 copied to clipboard

outdated

A Flutter package for both android and iOS which provides Audio recorder from microphone to a given file path through Button to record voice like social media Button

example/main.dart

import 'package:flutter/material.dart';
import 'package:social_media_recorder/provider/sound_record_notifier.dart';
import 'package:social_media_recorder/screen/simple_recorder.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
        // The line below forces the theme to iOS.
        platform: TargetPlatform.iOS,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          height: 300,
          child: Align(
            alignment: Alignment.centerRight,
            child: SocialSoundRecorder(
              sendRequestFunction: (soundFile) {
                print("the current path is ${soundFile.path}");
              },
              encode: AudioEncoderType.AAC,
            ),
          ),
        ),
      ),
    );
  }
}
152
likes
0
pub points
92%
popularity

Publisher

unverified uploader

A Flutter package for both android and iOS which provides Audio recorder from microphone to a given file path through Button to record voice like social media Button

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

animated_text_kit, cupertino_icons, flutter, path_provider, permission_handler, provider, record, uuid

More

Packages that depend on social_media_recorder