• Stars
    star
    224
  • Rank 177,792 (Top 4 %)
  • Language
    Dart
  • License
    GNU Affero Genera...
  • Created over 6 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A music player component for Flutter (i.e. Spotify, Apple Music, etc.) [AGPL/example/no longer maintaining]

This is an example

I currently have no plans of putting this on Pub. Originally, I did, but I lost interest. However, I think this is a good example, so I'm keeping it up.

That being said, the license is AGPL. Please know what that means, and don't be a pirate. I will find you.

music_player

Fullscreen screenshot

A music player component for Flutter (i.e. Spotify, Apple Music, etc.).

This is ready-to-go for embedding in a music-playing application. It supports seeking, as well as having callbacks for skipping, shuffling, and looping.

Installation

This package is not yet on Pub (I haven't figured out how to test it), so in the meantime:

dependencies:
  flutter: sdk
  music_player:
    git: https://github.com/thosakwe/flutter_music_player.git

Usage

class MyWidget extends StatelessWidget {
    @override
    build(BuildContext context) {
        return new MusicPlayer(
            onError: (e) {
                Scaffold.of(context).showSnackBar(
                    new SnackBar(
                        content: new Text(e),
                    ),
                );
            },
            onSkipPrevious: () {},
            onSkipNext: () {},
            onCompleted: () {},
            onLoopChanged: (loop) {
                setState(() => this.loopKind = loop);
            },
            onShuffleChanged: (loop) {
                setState(() => this.shuffle = loop);
            },
            key: musicPlayerKey,
            textColor: Colors.white,
            loop: loopKind,
            shuffle: shuffle,
            url: mp3Url,
            title: const Text(
                'BBC',
                textAlign: TextAlign.center,
                textScaleFactor: 1.5,
                style: const TextStyle(
                    fontWeight: FontWeight.bold,
                    color: Colors.white,
                ),
            ),
            subtitle: const Text(
                'JAY Z - Holy Grail',
                textAlign: TextAlign.center,
                style: const TextStyle(
                    color: Colors.white,
                ),
            ),
        );
    }
}

More Repositories

1

vim-flutter

Vim commands for Flutter, including hot-reload-on-save and more. 🦋
Vim Script
412
star
2

t2b

A wicked-powerful text macro language for building binary files.
C++
375
star
3

bullseye

[WIP] A pure functional language that compiles to Dart.
Dart
76
star
4

tensorflow.dart

Dart bindings for Tensorflow.
Dart
74
star
5

feathers-seeder

Straightforward data seeder for Feathers.js services. Promise-based.
JavaScript
38
star
6

prompts

Rich, simple, synchronous command-line prompt library for Dart.
Dart
37
star
7

samurai

JS Interpreter in Dart.
Dart
34
star
8

dart_electron_starter_kit

Boilerplate project for building Electron apps with Dart.
JavaScript
31
star
9

immutable_state

🎯 A lightweight framework for stateless UI in Flutter and Dart, and an alternative to Redux.
Dart
30
star
10

shell

Wrapper over dart:io [Process] API's that supports features like environment management, user switches, and more.
Dart
16
star
11

blm-blackout

Spread awareness of American police brutality - change your landing page to this blackout until justice is served. #BLMBlackout
HTML
15
star
12

dart_scripts

Run commands upon installing Dart packages, and more.
Dart
14
star
13

http2_client

A `package:http` `BaseClient` that speaks HTTP/2, and can maintain connections between requests.
Dart
12
star
14

pub_mediator

[ARCHIVED] Diagnoses version conflicts between dependencies in Dart packages.
Dart
12
star
15

feathers-validator

WIP. A validator for Feathers services, or any service.
JavaScript
11
star
16

combinator

Parser combinators that support static typing, file spans, and more.
Dart
10
star
17

instagram_dart

Dart Instagram client library.
Dart
6
star
18

polymer-semantic-ui

[WIP] Native Polymer elements for Semantic UI
HTML
4
star
19

fray

Interpreter/compiler with an emphasis on code transformation and reflection. Compiles to JS + JVM.
Java
2
star
20

paypal_dart

Unofficial Dart bindings for the PayPal REST API.
Dart
2
star
21

shrub

🌳 (Yet another) compile-to-WebAssembly language.
Dart
2
star
22

dartmonit

Monitor Dart scripts, and run them on startup.
Dart
2
star
23

graphql_schema

Moved to angel-dart/graphql mono-repo
Dart
1
star
24

hello_haskell

Haskell beginner projects and practice
Haskell
1
star
25

cassandra

Cassandra driver for the Dart VM.
Dart
1
star
26

arriba

Instant file transfer. Won best Newbie submission at FSU's MakeBuild 2019.
Dart
1
star