flutter_plugin_record 0.1.3 copy "flutter_plugin_record: ^0.1.3" to clipboard
flutter_plugin_record: ^0.1.3 copied to clipboard

outdated

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/overlay_screen.dart';
import 'package:flutter_plugin_record_example/second_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: {
        "SecondScreen": (BuildContext context) => new SecondScreen(),
        "OverLayScreen": (BuildContext context) => new OverLayScreen(),
      },
    );
  }
}

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, "SecondScreen");
                },
                child: new Text("进入语音录制界面")),
            new FlatButton(
                onPressed: () {
                  Navigator.pushNamed<dynamic>(context, "OverLayScreen");
                },
                child: new Text("进入仿微信录制界面")),

          ],
        ),
      ),
    );
  }
}
35
likes
0
pub points
71%
popularity

Publisher

unverified uploader

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

License

unknown (license)

Dependencies

flutter, uuid

More

Packages that depend on flutter_plugin_record