• Stars
    star
    317
  • Rank 132,216 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

Flute Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flute Music Player Plugin Only

Updated to androidx First Open Source Flutter based material design music player with audio plugin to play local music files.(Online Radio will be added soon.)

Features

  • Android (iOS Coming Soon)

    • Fetch local songs (Inbuilt Permission)
    • Beautiful UI with multiple themes(Coming Soon)
    • Animation
    • Full Fledged Example
    • play (local files)
    • stop
    • pause
    • seek
    • shuffle
    • Album Art
    • onComplete
    • onDuration / onCurrentPosition
  • Supported formats

Show some ❀️ and star the repo to support the project

  • Please note this is a plugin only. Actual project's link is below

Music Player Development Project

Flutter Beautiful Music Player

Screenshots

Usage

Example

To use this plugin :

  dependencies:
    flutter:
      sdk: flutter
    flute_music_player:
  • instantiate an Music Finder instance
//...
MusicFinder audioPlayer = new MusicFinder();
//...

Fetch Songs

//...
var songs = MusicFinder.allSongs();
//...

play, pause , stop, seek

play() async {
  final result = await audioPlayer.play(kUrl);
  if (result == 1) setState(() => playerState = PlayerState.playing);
}

// add a isLocal parameter to play a local file
playLocal() async {
  final result = await audioPlayer.play(kUrl);
  if (result == 1) setState(() => playerState = PlayerState.playing);
}


pause() async {
  final result = await audioPlayer.pause();
  if (result == 1) setState(() => playerState = PlayerState.paused);
}

stop() async {
  final result = await audioPlayer.stop();
  if (result == 1) setState(() => playerState = PlayerState.stopped);
}

// seek 5 seconds from the beginning
audioPlayer.seek(5.0);

duration, position, complete, error (temporary api)

The Dart part of the plugin listen for platform calls :

//...
audioPlayer.setDurationHandler((Duration d) => setState(() {
  duration = d;
}));

audioPlayer.setPositionHandler((Duration  p) => setState(() {
  position = p;
}));

audioPlayer.setCompletionHandler(() {
  onComplete();
  setState(() {
    position = duration;
  });
});

audioPlayer.setErrorHandler((msg) {
  print('audioPlayer error : $msg');
  setState(() {
    playerState = PlayerState.stopped;
    duration = new Duration(seconds: 0);
    position = new Duration(seconds: 0);
  });
});

##Credit for audioplayer plugin Erick Ghaumez Detailed Example for AudioPlayer

iOS

Alert: iOS implementation

This project is not implemented for ios yet.So wait for it or if you can contribute then please do help.

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using Reformat Code feature of Android Studio CMD+Option+L on Mac and CTRL + ALT + L on Linux + Windows .
  2. If its a feature, bugfix, or anything please only change code to what you specify.
  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  5. Check for existing issues first, before filing an issue.
  6. Make sure you follow the set standard as all other projects in this repo do
  7. Have fun!

Created & Maintained By

Pawan Kumar (@imthepk) (Youtube) (Insta)

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of β˜•

License

Copyright 2018 Pawan Kumar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

More Repositories

1

FlutterExampleApps

[Example APPS] Basic Flutter apps, for flutter devs.
Dart
18,318
star
2

Flutter-UI-Kit

Flutter app for collection of UI in a UIKit
Dart
6,018
star
3

Flutter-Music-Player

Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.
Dart
1,557
star
4

FlutterWhatsAppClone

Building a WhatsApp Clone in Flutter.
Dart
1,507
star
5

VelocityX

A minimalist Flutter framework for rapidly building Flutter apps.
Dart
1,421
star
6

FlutterWithFirebase

A Flutter app with firebase libraries implementation
Dart
660
star
7

GDG-DevFest-App

An App Template For GDG DevFest
Dart
631
star
8

Flutter-Instagram-UI-Clone

Instagram Ui Clone made using Flutter.
Dart
528
star
9

30DaysOfFlutter

Learn Flutter in 30 Days
Dart
400
star
10

CryptoApp

Cryptocurrency App with MVP Design Pattern to track all the coins data in realtime for android & iOS . Written in dart using Flutter SDK.
Dart
294
star
11

PKSkeleton

A Facebook & Twitter Like Card Loading Shimmer Skeleton Library.
Dart
283
star
12

PokemonApp

Pokemon App with animations and beautiful UI
Dart
269
star
13

FlutterQRScanner-App

Ruby
253
star
14

FlutterStackOverflowApp

Flutter App using the stack overflow questions api which we made using django.
Dart
233
star
15

AI-Radio

This is a radio app where you can ask Alan AI to play some music.
C++
227
star
16

ChatGPT-Flutter-AIChatBot

A Chatbot chat app built using the Flutter framework and OpenAI's GPT-3 language model.
C++
204
star
17

PortfolioX

Responsive Portfolio App Made With Flutter With VelocityX
Dart
194
star
18

Flutter-Sqflite-MVP

An Login Page App in Flutter with MVP and SQFLITE ( SQLITE) Implementation.
Dart
180
star
19

myportfolio

Portfolio Page created using Flutter Web
Dart
161
star
20

FlutterWidgets

Collection of all the widgets with their tutorial
Dart
148
star
21

MediumClapFlutter

A Custom Floating Action Button (FAB) library like clapping effect on Medium
Dart
141
star
22

iampawan

Pawan Kumar Portfolio
138
star
23

IndiaBeatsCovid

A platform to share crowdsourced information of plasma donors, hospital beds and oxygen suppliers to help COVID patients
Dart
131
star
24

FlutterTicTacToe

Build Tic Tac Toe Game in Flutter
Dart
123
star
25

Flutter-Walkthrough

A new Flutter package which helps developers in creating walkthrough of their app.
Dart
120
star
26

FlutterLoginPageBloc

Dart
108
star
27

FlutterQuizApp

Dart
105
star
28

flutterlogin

Makefile
88
star
29

Coronavirus-Warrior

A Flutter project to track & help to fight from coronavirus.
Dart
83
star
30

fluttercalculator

Calculator App written in dart using Flutter
Dart
81
star
31

FlutterEssentialEnglish

Flutter Essential English Course For MTechViral School
Dart
79
star
32

fluttersignatureview

Dart
75
star
33

FlutterAuthFaceID-FingerPrint

Dart
73
star
34

FlutterPDFViewer

Dart
72
star
35

TFLite-Flutter

Dart
72
star
36

FlutterGoogleMaps

Dart
69
star
37

VelocityXApp

A flutter documentation app for VelocityX
Dart
64
star
38

Cocktail-App

Flutter beautiful cocktail app.
Dart
60
star
39

FlutterDownloadFilesWithProgress

Dart
60
star
40

FlutterAR

Dart
59
star
41

ReactChakraPortfolio

This project was bootstrapped with Chakra UI & Create React App
JavaScript
59
star
42

BMI-Calculator-App

BMI Calculator Flutter App with State Management
Dart
58
star
43

FlutterBackdrop

Demo of how to make a backdrop widget with a front and back panel.
Dart
57
star
44

PKNetflix

PkNetflix is a netflix clone built using Flutter & Appwrite
Dart
55
star
45

DevfestTutorialApp

Dart
53
star
46

FlutterUtilsCollection

Dart
52
star
47

FlutterGameOfThrones

Dart
52
star
48

FlutterChatApp

Flutter Chat App with localization - powered by Stream
Dart
52
star
49

flutter_websocket

WebSocket Demo In Flutter
Dart
51
star
50

FlutterShoppingCart

Dart
50
star
51

Redux-Tutorial-Flutter

A simple flutter app with demo implementation of redux.
Dart
46
star
52

Flutter-Dynamic-Theming

Flutter: Dynamic Theming | Change Theme At Runtime
Dart
45
star
53

MusicPlayer

Upcoming Material Design Music Player
Java
43
star
54

frenzychatapp

Frenzy Chat App is written in flutter.
Dart
42
star
55

VxState

Another state management solution
Dart
41
star
56

TrillApp

Dart
40
star
57

JetpackComposeLooks

Compose UI Samples
Kotlin
40
star
58

Flutter_Click_Pick_Crop_Compress

How to click, pick, crop and compress an image
Dart
39
star
59

FlutterBackgroundFetch

Dart
39
star
60

FlutterExpandableAndStickyHeaderList

Dart
38
star
61

FlutterBottomSheet

Dart
38
star
62

FlutterLooks

Dart
38
star
63

FlutterWithPython

Making flutter apps using Python
Python
36
star
64

DartSOLIDPrinciple

Demo of solid principle in Dart
Dart
36
star
65

FlutterGenderPredictor

Dart
33
star
66

flutter_connectivity

Dart
31
star
67

FlutterEssentialHindi

Flutter Essential Hindi Course For MTechViral School
Dart
30
star
68

Learning-RxDart

Dart
29
star
69

GOT_FLUTTER_PWA

Dart
28
star
70

FlutterForWebDemoApp

Dart
27
star
71

BreathingFlutter

A breathing Appbar and widget library in Flutter.
Dart
27
star
72

FunnyBones

An app for jokes which follows clean architecture principles, well structured and tested.
Dart
27
star
73

FlutterFlare-Basic

Flare 2D Dimension.
Dart
25
star
74

PokemonAppAngularDartFirebase

Dart
25
star
75

GifSearchEngine

Dart
25
star
76

VelocityXAndroidCompose

A minimalist framework for rapidly building Jetpack compose apps.
Kotlin
24
star
77

Flutter-Best-Packages

Dart
24
star
78

FlutterAnimatedAgeCalculatorApp

An age calculator app with animation.
Dart
24
star
79

AnimationSeries

Dart
24
star
80

FUI01-NikeWebFlutter

Dart
24
star
81

FlutterChristmasTree

Ruby
24
star
82

FlutterForms

Dart
23
star
83

flutter_pull_to_refresh

Dart
23
star
84

FlutterBuilder

Dart
23
star
85

DartAdvanced

Collection of Dart Advanced
Dart
22
star
86

Flutter-Routes

Tutorial about routes, push and pushNamed
Dart
22
star
87

FlutterToastPlugin

A new Flutter plugin for showing toast in android and ios.
Ruby
21
star
88

FlutterAutoJSONModel

Dart
21
star
89

AddFlutter2ExistingAndroidApp

Tutorial for integrating flutter to your new or existing android app.
Java
21
star
90

MultiX

Provide an easy way to make responsive and adaptive Flutter multi-platform applications.
Dart
21
star
91

ProjectFPL

Flutter Practice Live Series
C++
19
star
92

DartQuizApi

In this tutorial, we'll create a Quiz application using AQUEDUCT FRAMEWORK.
Dart
19
star
93

FlutterCollapsingToolbar

Dart
19
star
94

Click2Analyze-AndroidDevChallenge

An app to analyze the text and fixing the anomaly of the message that deviates from what is standard, normal, or expected. #AndroidDevChallenge
19
star
95

GOT2019

Dart
17
star
96

JetpackExample

Kotlin
16
star
97

FlipperWidget

Dart
16
star
98

VxFluentUI

Based on Microsoft Fluent Design System and made using the help of Flutter VelocityX.
Dart
16
star
99

MusicPlayer2018

Android Music Player App 2018 written in Kotlin using Anko with the help of MPlay Finder library.
Kotlin
16
star
100

FlutterAngel

A Flutter App with Angel backend.
Dart
15
star