flutter_tc_player 0.0.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 28

flutter_tc_player #

Just Test pub publish, please not use it ! Just Test pub publish, please not use it ! Just Test pub publish, please not use it !

  flutter_tc_player: ^0.0.4

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

0.0.5 #

0.0.4 #

  • TODO: Describe initial release.


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

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

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  TencentPlayerController controller;
  VoidCallback listener;

  _MyAppState() {
    listener = () {
      if (!mounted) {
      setState(() {});

  void initState() {
    controller = TencentPlayerController.network(
        deviceOrientationsAfterFullScreen: [DeviceOrientation.portraitUp]);

  void dispose() {

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        body: Center(
            child: controller.value.initialized ? AspectRatio(
              aspectRatio: controller.value.aspectRatio,
              child: TencentPlayer(controller),
            ): Container()

Use this package as a library

1. Depend on it

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

  flutter_tc_player: ^0.0.5

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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_tc_player/flutter_tc_player.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 9, 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

Health issues and suggestions

Fix lib/view/tencent_player.dart. (-25 points)

Analysis of lib/view/tencent_player.dart failed with 1 error:

line 48 col 31: The named parameter 'isInitialRoute' isn't defined.

Format lib/controller/tencent_player_controller.dart.

Run flutter format to format lib/controller/tencent_player_controller.dart.

Format lib/flutter_tc_player.dart.

Run flutter format to format lib/flutter_tc_player.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/model/player_config.dart (Run flutter format to format lib/model/player_config.dart.)
  • lib/model/tencent_player_value.dart (Run flutter format to format lib/model/tencent_player_value.dart.)
  • lib/view/player_ui.dart (Run flutter format to format lib/view/player_ui.dart.)

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://www.pub.org was unreachable.

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
wakelock ^0.1.3+4 0.1.4+2
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 2.1.0-nullsafety
Dev dependencies