flutter_rtmp_publisher_v2 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 63

flutter_rtmp_publisher #

flutter plugin to publish rtmp data.

Only work on Android, developing at branch dev, the plugin can not use now!

Getting Started #

Add flutter_rtmp_publisher as a dependency in your pubspec.yaml file.

Use the following dependency block in your pubspec.yaml file.

dependencies:
  flutter_rtmp_publisher:
    git:
      url: git://github.com/OhYee/flutter_rtmp_publisher.git

Acknowledgement #

The NOTICE file is here

License #

This project is licensed under the Apache License 2.0.

0.0.1 #

  • TODO: Describe initial release.

example/lib/main.dart

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

import 'package:flutter_rtmp_publisher/flutter_rtmp_publisher.dart';
import 'language.dart';
import 'Dart:async';

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

class MyApp extends StatelessWidget {
  final RTMPCamera cameraController = RTMPCamera();
  final StreamController<List<CameraSize>> streamController =
      StreamController<List<CameraSize>>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('RTMP Publisher'),
        ),
        body: ListView(
          children: <Widget>[
            AspectRatio(
              aspectRatio: 3 / 4,
              child: RTMPCameraPreview(
                controller: this.cameraController,
                createdCallback: (int id) {
                  this.cameraController.getResolutions().then((resolutionList) {
                    streamController.add(resolutionList);
                  });
                },
              ),
            ),
            Container(
              // height: 200,
              child: MyAppState(
                cameraController: cameraController,
                resolutionStream: streamController.stream,
              ),
            )
          ],
        ),
      ),
    );
  }
}

class MyAppState extends StatefulWidget {
  final RTMPCamera cameraController;
  final Stream<List<CameraSize>> resolutionStream;
  MyAppState({Key key, this.cameraController, this.resolutionStream})
      : super(key: key);

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyAppState> {
  final textController =
      TextEditingController(text: "rtmp://10.240.169.163:19356/myapp/mystream");

  final videoBitrateController = TextEditingController(text: "2560000");
  final fpsController = TextEditingController(text: "30");
  final audioBitrateController = TextEditingController(text: "128");
  final sampleRateController = TextEditingController(text: "44100");
  final usernameController = TextEditingController(text: "");
  final passwordController = TextEditingController(text: "");
  bool hardwareController = false;
  bool echoCancelerController = false;
  bool noiseSuppressorController = false;

  Language lang = language[0].useThis();
  CameraSize size;

  bool onPreview = false;
  bool isStreaming = false;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(10),
      child: Column(
        children: <Widget>[
          TextField(
            controller: textController,
            decoration: new InputDecoration(
              labelText: lang.address,
            ),
          ),
          languageChooser(),
          buttonArea(),
          settingArea(),
        ],
      ),
    );
  }

  makeToast({String text, String action, Function callback}) {
    // hide the last snackbar
    Scaffold.of(context).hideCurrentSnackBar();
    Scaffold.of(context).showSnackBar(new SnackBar(
      content: new Text(text),
      action: action != null
          ? SnackBarAction(
              label: action,
              onPressed: () => callback == null
                  ? Scaffold.of(context).hideCurrentSnackBar()
                  : callback,
            )
          : null,
    ));
  }

  Widget languageChooser() {
    return Container(
      child: Wrap(
        // spacing: 8.0,
        // runSpacing: 4.0,
        children: List.generate(
          language.length,
          (index) {
            return Checker(
              text: language[index].language,
              value: language[index].use,
              callbackFunc: (value) {
                setState(() {
                  for (var l in language) {
                    l.use = false;
                  }
                  lang = language[index].useThis();
                });
              },
            );
          },
        ),
      ),
    );
  }

  Widget makeTextField(String label, TextEditingController controller) {
    return Container(
      width: 150,
      child: TextField(
        keyboardType: TextInputType.number,
        inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
        decoration: new InputDecoration(
          labelText: label,
        ),
        controller: controller,
      ),
    );
  }

  Widget settingArea() {
    return Container(
      alignment: Alignment(0, 0),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Text(
            lang.video,
            style: TextStyle(fontWeight: FontWeight.bold),
          ),
          ResolutionChooser(
            stream: this.widget.resolutionStream,
            lang: lang,
            callbackFunc: (CameraSize size) {
              this.size = size;
            },
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              makeTextField(lang.videoBitrate, videoBitrateController),
              makeTextField(lang.audioBitrate, audioBitrateController),
            ],
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              makeTextField(lang.fps, fpsController),
              Checker(
                text: this.lang.hardwareRotation,
                value: this.hardwareController,
                callbackFunc: (value) {
                  setState(() {
                    this.hardwareController = value;
                  });
                },
              ),
            ],
          ),
          Text(
            this.lang.audio,
            style: TextStyle(fontWeight: FontWeight.bold),
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              makeTextField(lang.audioBitrate, audioBitrateController),
              makeTextField(lang.sampleRate, sampleRateController),
            ],
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              Checker(
                text: this.lang.noiseSuppressor,
                value: this.noiseSuppressorController,
                callbackFunc: (value) {
                  setState(() {
                    this.noiseSuppressorController = value;
                  });
                },
              ),
              Checker(
                text: this.lang.echoCanceler,
                value: this.echoCancelerController,
                callbackFunc: (value) {
                  setState(() {
                    this.echoCancelerController = value;
                  });
                },
              ),
            ],
          ),
        ],
      ),
    );
  }

  Widget buttonArea() {
    return Container(
      padding: EdgeInsets.all(10),
      alignment: Alignment(0, 0),
      child: Wrap(
        spacing: 20,
        runSpacing: 20,
        children: <Widget>[
          this.previewButton(),
          this.streamButton(),
          makeButton(
              icon: Icons.switch_camera,
              text: lang.switchCamera,
              func: () {
                this.widget.cameraController.switchCamera();
              }),
        ],
      ),
    );
  }

  Future<bool> prepareEncode() async {
    return await this.widget.cameraController.prepareAudio(
              bitrate: int.parse(this.audioBitrateController.text),
              sampleRate: int.parse(this.sampleRateController.text),
              echoCanceler: this.echoCancelerController,
              noiseSuppressor: this.noiseSuppressorController,
            ) &&
        await this.widget.cameraController.prepareVideo(
              width: this.size.width,
              height: this.size.height,
              fps: int.parse(this.fpsController.text),
              bitrate: int.parse(this.videoBitrateController.text),
              hardwareRotation: this.hardwareController,
            );
  }

  Widget makeButton({IconData icon, String text, Function func}) {
    return Container(
      padding: EdgeInsets.fromLTRB(5, 0, 5, 0),
      constraints: BoxConstraints(maxWidth: 170),
      // width: 150,
      height: 50,
      child: RaisedButton(
        child: Row(
          children: <Widget>[
            Icon(icon),
            Text(text),
          ],
        ),
        onPressed: () {
          func();
        },
      ),
    );
  }

  Widget previewButton() {
    if (!this.onPreview) {
      return makeButton(
        icon: Icons.play_circle_filled,
        text: lang.startPreview,
        func: () async {
          if (this.size == null) {
            makeToast(text: lang.errorResolutionFirst, action: lang.gotIt);
          } else {
            if (await this.prepareEncode()) {
              await this.widget.cameraController.startPreview();
              this.widget.cameraController.onPreview().then((preview) {
                setState(() {
                  this.onPreview = preview;
                });
              });
            } else {
              makeToast(text: "Error");
            }
          }
        },
      );
    } else {
      return makeButton(
        icon: Icons.pause_circle_filled,
        text: lang.stopPreview,
        func: () async {
          await this.widget.cameraController.stopPreview();
          this.widget.cameraController.onPreview().then((preview) {
            setState(() {
              this.onPreview = preview;
            });
          });
        },
      );
    }
  }

  Widget streamButton() {
    if (!this.isStreaming) {
      return makeButton(
        icon: Icons.play_circle_filled,
        text: lang.startStream,
        func: () async {
          if (await this.widget.cameraController.onPreview() == false ||
              await this.prepareEncode()) {
            await this
                .widget
                .cameraController
                .startStream(this.textController.text);

            this.widget.cameraController.isStreaming().then((streaming) {
              setState(() {
                this.isStreaming = streaming;
              });
            });
          } else {
            makeToast(text: "Error!");
          }
        },
      );
    } else {
      return makeButton(
        icon: Icons.pause_circle_filled,
        text: lang.stopStream,
        func: () async {
          await this.widget.cameraController.stopStream();
          this.widget.cameraController.isStreaming().then((streaming) {
            setState(() {
              this.isStreaming = streaming;
            });
          });
        },
      );
    }
  }
}

/* 
  Dropdown
*/

class ResolutionChooser extends StatefulWidget {
  final Stream<List<CameraSize>> stream;
  final Language lang;
  final CameraSizeCallback callbackFunc;

  ResolutionChooser({
    Key key,
    this.stream,
    this.lang,
    this.callbackFunc,
  }) : super(key: key);

  @override
  _ResolutionChooserState createState() => _ResolutionChooserState();
}

class _ResolutionChooserState extends State<ResolutionChooser> {
  List<CameraSize> resolutionList;
  CameraSize size;
  int selected;

  StreamSubscription<List<CameraSize>> listener;

  @override
  void initState() {
    super.initState();
    listener = this.widget.stream.listen((rl) {
      setState(() {
        this.resolutionList = rl;
        if (rl.length > 0) {
          this.selected = 0;
          this.widget.callbackFunc(rl[0]);
        }
      });
    });
  }

  @override
  void dispose() {
    if (this.listener != null) {
      this.listener.cancel();
    }
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return this.resolutionList == null
        ? Text(this.widget.lang.resolutionIsLoding)
        : DropdownButtonHideUnderline(
            child: DropdownButton(
              items: List.generate(this.resolutionList.length, (index) {
                CameraSize resolution = this.resolutionList[index];
                return DropdownMenuItem(
                  value: index,
                  child: new Text("${resolution.width}×${resolution.height}"),
                );
              }),
              hint: Text(this.widget.lang.resolutionFirst),
              value: selected,
              onChanged: (int i) {
                if (this.widget.callbackFunc != null) {
                  this.widget.callbackFunc(this.resolutionList[i]);
                }
                setState(() {
                  this.selected = i;
                });
              },
            ),
          );
  }
}

class Checker extends StatefulWidget {
  final Function callbackFunc;
  final String text;
  final bool value;
  Checker({Key key, this.callbackFunc, this.text, this.value})
      : super(key: key);

  @override
  _CheckerState createState() => _CheckerState(value: value);
}

class _CheckerState extends State<Checker> {
  bool value;

  _CheckerState({this.value}) : super();

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisSize: MainAxisSize.min,
      children: <Widget>[
        Checkbox(
          value: this.widget.value, //当前状态
          onChanged: (value) {
            if (this.widget.callbackFunc != null) {
              this.widget.callbackFunc(value);
            }
          },
        ),
        Text(this.widget.text),
      ],
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_rtmp_publisher_v2: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_rtmp_publisher_v2/flutter_rtmp_publisher.dart';
import 'package:flutter_rtmp_publisher_v2/RTMPCamera.dart';
import 'package:flutter_rtmp_publisher_v2/RTMPCameraPreview.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
63
Learn more about scoring.

We analyzed this package on Jul 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform linux

Because of import path [package:flutter_rtmp_publisher_v2/RTMPCamera.dart] that declares support for platforms: android, ios

Package does not support Flutter platform macos

Because of import path [package:flutter_rtmp_publisher_v2/RTMPCamera.dart] that declares support for platforms: android, ios

Package does not support Flutter platform web

Because of import path [package:flutter_rtmp_publisher_v2/RTMPCamera.dart] that declares support for platforms: android, ios

Package does not support Flutter platform windows

Because of import path [package:flutter_rtmp_publisher_v2/RTMPCamera.dart] that declares support for platforms: android, ios

Package not compatible with SDK dart

because of import path [flutter_rtmp_publisher_v2] that is in a package requiring null.

Health suggestions

Fix lib/RTMPCameraPreview.dart. (-0.50 points)

Analysis of lib/RTMPCameraPreview.dart reported 1 hint:

line 33 col 16: This function has a return type of 'Widget', but doesn't end with a return statement.

Format lib/flutter_rtmp_publisher.dart.

Run flutter format to format lib/flutter_rtmp_publisher.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Running dartdoc failed with the following output: NoSuchMethodError: The getter 'attributes' was called on null. Receiver: null Tried calling: attributes

#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      DartdocCustomizer._addPubPackageLink (package:pub_dev/dartdoc/customization.dart:168:17)
#2      DartdocCustomizer.customizeHtml (package:pub_dev/dartdoc/customization.dart:61:7)
#3      DartdocCustomizer.customizeFile (package:pub_dev/dartdoc/customization.dart:35:31)
<asynchronous suspension>
#4      DartdocCustomizer.customizeDir (package:pub_dev/dartdoc/customization.dart:26:25)
<asynchronous suspension>
#5      DartdocJobProcessor.process (package:pub_dev/dartdoc/dartdoc_runner.dart:211:14)
<asynchronous suspension>
#6      JobProcessor.run (package:pub_dev/job/job.dart:65:28)
<asynchronous suspension>
#7      JobMaintenance.run (package:pub_dev/job/job.dart:106:18)
#8      _workerMain.<anonymous closure> (package:pub_dev/service/entrypoint/dartdoc.dart:108:26)
#9      StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#10     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#11     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#12     _rootRunUnary (dart:async/zone.dart:1192:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#18     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#19     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#20     DartdocJobProcessor.generateDocsForSdk (package:pub_dev/dartdoc/dartdoc_runner.dart)
#21     StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#22     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#23     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#24     _rootRunUnary (dart:async/zone.dart:1192:38)
#25     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#26     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#27     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#28     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#29     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#30     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#31     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#32     VersionedJsonStorage.hasCurrentData (package:pub_dev/shared/storage.dart)
#33     StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#34     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#35     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#36     _rootRunUnary (dart:async/zone.dart:1192:38)
#37     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#38     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#39     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#40     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#41     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#42     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#43     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#44     ApiRequester.request (package:_discoveryapis_commons/src/clients.dart)
#45     StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#46     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#47     StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#48     _rootRunUnary (dart:async/zone.dart:1192:38)
#49     _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#50     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#51     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#52     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#53     Future._complete (dart:async/future_impl.dart:516:7)
#54     Stream.join.<anonymous closure> (dart:async/stream.dart:847:18)
#55     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#56     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#57     _rootRun (dart:async/zone.dart:1180:38)
#58     _CustomZone.run (dart:async/zone.dart:1077:19)
#59     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#60     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#61     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:15)
#62     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:286:7)
#63     _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:98:11)
#64     _EventSinkWrapper.close (dart:async/stream_transformers.dart:25:11)
#65     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
#66     _Utf8ConversionSink.close (dart:convert/string_conversion.dart:302:20)
#67     _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:83:18)
#68     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:143:24)
#69     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#70     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#71     _rootRun (dart:async/zone.dart:1180:38)
#72     _CustomZone.run (dart:async/zone.dart:1077:19)
#73     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#74     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#75     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:15)
#76     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:286:7)
#77     _ForwardingStream._handleDone (dart:async/stream_pipe.dart:108:10)
#78     _ForwardingStreamSubscription._handleDone (dart:async/stream_pipe.dart:174:13)
#79     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#80     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#81     _rootRun (dart:async/zone.dart:1180:38)
#82     _CustomZone.run (dart:async/zone.dart:1077:19)
#83     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#84     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#85     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:15)
#86     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:286:7)
#87     _ForwardingStream._handleDone (dart:async/stream_pipe.dart:108:10)
#88     _ForwardingStreamSubscription._handleDone (dart:async/stream_pipe.dart:174:13)
#89     StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#90     StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#91     _rootRun (dart:async/zone.dart:1180:38)
#92     _CustomZone.run (dart:async/zone.dart:1077:19)
#93     _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#94     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)
#95     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:15)
#96     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:286:7)
#97     _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:787:19)
#98     _StreamController._closeUnchecked (dart:async/stream_controller.dart:644:7)
#99     _StreamController.close (dart:async/stream_controller.dart:637:5)
#100    _HttpParser._closeIncoming (dart:_http/http_parser.dart:1121:23)
#101    _HttpParser._doParse (dart:_http/http_parser.dart:815:15)
#102    _HttpParser._parse (dart:_http/http_parser.dart:328:7)
#103    _HttpParser._onData (dart:_http/http_parser.dart:850:5)
#104    StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#105    StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#106    StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#107    _rootRunUnary (dart:async/zone.dart:1192:38)
#108    _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#109    _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#110    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#111    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#112    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#113    _StreamController._add (dart:async/stream_controller.dart:655:7)
#114    _StreamController.add (dart:async/stream_controller.dart:597:5)
#115    _Socket._onData (dart:io-patch/socket_patch.dart:1982:41)
#116    StackZoneSpecification._registerUnaryCallback.<anonymous closure>.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:26)
#117    StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#118    StackZoneSpecification._registerUnaryCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:129:14)
#119    _rootRunUnary (dart:async/zone.dart:1192:38)
#120    _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#121    _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
#122    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#123    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:266:7)
#124    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:779:19)
#125    _StreamController._add (dart:async/stream_controller.dart:655:7)
#126    _StreamController.add (dart:async/stream_controller.dart:597:5)
#127    _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1018:19)
#128    StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#129    StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#130    _rootRun (dart:async/zone.dart:1180:38)
#131    _CustomZone.run (dart:async/zone.dart:1077:19)
#132    _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#133    _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#134    StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#135    StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#136    _rootRun (dart:async/zone.dart:1184:13)
#137    _CustomZone.run (dart:async/zone.dart:1077:19)
#138    _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1003:23)
#139    Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#140    _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#141    _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#142    _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.1
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies
flutter_test