flutter_plugin_record_plus 0.0.19 copy "flutter_plugin_record_plus: ^0.0.19" to clipboard
flutter_plugin_record_plus: ^0.0.19 copied to clipboard

discontinuedreplaced by: flutter_plugin_record
PlatformAndroidiOS

The flutter voice recording plug-in,provides the recording animation and the recording successfully returns to the recording file path

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_plugin_record_example/path_provider_screen.dart';
import 'package:flutter_plugin_record_example/record_mp3_screen.dart';
import 'package:flutter_plugin_record_example/record_screen.dart';
import 'package:flutter_plugin_record_example/wechat_record_screen.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Flutter Demo Home Page'),
      routes: {
        "RecordScreen": (BuildContext context) => new RecordScreen(),
        "RecordMp3Screen": (BuildContext context) => new RecordMp3Screen(),
        "WeChatRecordScreen": (BuildContext context) =>
            new WeChatRecordScreen(),
        "PathProviderScreen": (BuildContext context) =>
            new PathProviderScreen(),
      },
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("flutter版微信语音录制实现"),
      ),
      body: new Center(
        child: new Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            new FlatButton(
                onPressed: () {
                  Navigator.pushNamed<dynamic>(context, "RecordScreen");
                },
                child: new Text("进入语音录制界面")),
            new FlatButton(
                onPressed: () {
                  Navigator.pushNamed<dynamic>(context, "RecordMp3Screen");
                },
                child: new Text("进入录制mp3模式")),
            new FlatButton(
                onPressed: () {
                  Navigator.pushNamed<dynamic>(context, "WeChatRecordScreen");
                },
                child: new Text("进入仿微信录制界面")),
            new FlatButton(
                onPressed: () {
                  Navigator.pushNamed<dynamic>(context, "PathProviderScreen");
                },
                child: new Text("进入文件路径获取界面")),
          ],
        ),
      ),
    );
  }
}
7
likes
105
points
1.54k
downloads

Publisher

verified publishercomm.qq.com

Weekly Downloads

The flutter voice recording plug-in,provides the recording animation and the recording successfully returns to the recording file path

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, uuid

More

Packages that depend on flutter_plugin_record_plus