twitcasting_kit 0.0.13

  • Readme
  • Changelog
  • Example
  • Installing
  • 20

twitcasting_kit #

A Flutter package to call Twitcasting api.

Twitcasting API V2 Document

Initialize Twitcasting #

Twitcasting.initialize(TwitcastingConfig(clientId, clientSecret));

Usage #

final liveService = Twitcasting.getInstance().apiClient.liveService;
liveService.getRecommendedLives().then((lives) {
  // TODO

liveService.getLive(movieId).then((live) {
  // TODO

liveService.getNewLives().then((lives) {
  // TODO


  • Support tag search.
  • Support category search.
  • Support word search.

[0.0.11] - Release


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

void main() {
  final clientId = "";
  final clientSecret = "";
  Twitcasting.initialize(TwitcastingConfig(clientId, clientSecret));
  runApp(new MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
      home: new MyHomePage(),

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);

  _MyHomePageState createState() => new _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  final _liveService = Twitcasting.getInstance().apiClient.liveService;
  List<Live> lives = [];

  void initState() {
    _liveService.getRecommendedLives().then((lives) {
      setState(() => this.lives = lives);

  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text("Recommended List"),
        body: new ListView.builder(
          itemBuilder: (context, index) {
            final live = lives[index];
            return Container(
                margin: EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
                child: Row(
                  children: <Widget>[
                      width: 80.0,
                      height: 45.0,
                      image: NetworkImage(,
                      child: Text(
                        overflow: TextOverflow.ellipsis,
          itemCount: lives.length,

Use this package as a library

1. Depend on it

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

  twitcasting_kit: ^0.0.13

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:twitcasting_kit/twitcasting_kit.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 Nov 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6


Detected platforms:

Error(s) prevent platform classification:

Error(s) in lib/twitcasting_kit.dart: Target of URI doesn't exist: 'package:http/http.dart'.

Health issues and suggestions

Fix lib/twitcasting_kit.dart. (-25.38 points)

Analysis of lib/twitcasting_kit.dart failed with 1 error, 1 hint:

line 6 col 8: Target of URI doesn't exist: 'package:http/http.dart'.

line 33 col 27: The value of the field '_config' isn't used.

Document public APIs. (-1 points)

63 out of 63 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/http_client.dart. (-1.49 points)

Analysis of lib/src/http_client.dart reported 3 hints:

line 23 col 25: The declaration '_post' isn't referenced.

line 28 col 25: The declaration '_delete' isn't referenced.

line 33 col 25: The declaration '_put' isn't referenced.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Error(s) in lib/twitcasting_kit.dart: Target of URI doesn't exist: 'package:http/http.dart'.

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 getting outdated. (-19.73 points)

The package was last published 62 weeks ago.

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.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies