danplayer 0.0.4
danplayer: ^0.0.4 copied to clipboard

A flutter danMaku player. It has very much custom options for developer.

example/lib/main.dart

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

import 'listview.dart';

void main() {
  /// Be careful this variable
  danPlayerRenderVideo = false;

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'DanPlayer Demo',
      debugShowCheckedModeBanner: false,
      home: MyHomePage(title: 'DanPlayer Demo'),
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: ListView(
        children: <Widget>[
          Card(
            child: Padding(
              padding: EdgeInsets.all(5),
              child: Text(
                'Packcage url\nhttps://pub.dev/packages/danplayer',
                softWrap: true,
              ),
            ),
          ),
          Card(
            child: Padding(
              padding: EdgeInsets.all(5),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Text(
                    'The DanPlayer in scrollable widget',
                    softWrap: true,
                  ),
                  RaisedButton(
                    color: Colors.red,
                    child: Text(
                      'Demo',
                      style: TextStyle(color: Colors.white),
                    ),
                    onPressed: () {
                      Navigator.push(context,
                          MaterialPageRoute(builder: (_) => InListView()));
                    },
                  )
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}
0
likes
60
pub points
0%
popularity

A flutter danMaku player. It has very much custom options for developer.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, video_player

More

Packages that depend on danplayer