annapurnasid / audio_player

Creating Flutter Custom Widgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Audio Player App

This Flutter app demonstrates creating custom widgets. (Audio Player with Custom Widget)

Creating Custom Widget

We are going to use simple basic widgets to create a custom widget. This is called composition We can create a package of this & reuse this custom widget in any project that we want.

The widget that we have in this project is as shown below: Custom Widget

  1. Container: all the simple widgets will be inside a container
  2. Icon: play/pause button
  3. Text: current time of the track
  4. Slider: the audio track bar
  5. Text: the total time of the track
  6. Row: all the widgets are inside a row widget.

You can checkout the app face from the screenshot here.

About the app

This is a simple app with just one audio track. Purpose is to demonstrate how to create custom widget. Features implemented:

  • View Model
  • Widget Composition
  • Basic flutter widget

packages used: Audio Player: https://pub.dev/packages/audioplayers
Stacked: https://pub.dev/packages/stacked

Make sure you have the latest versions of the package. Feel free to fork changes(if any).

Once you are done, sit back and enjoy one of the best Indian musics :)

Get Started with Flutter

A few resources to get you started if this is your first Flutter project:

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

Tutorial reference for this app.

About

Creating Flutter Custom Widgets


Languages

Language:Dart 93.4%Language:Swift 4.6%Language:Kotlin 1.5%Language:Objective-C 0.4%