Skip to content
manojkumar9121Public

About

A sleek offline music player for Android that plays your local music library

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Celsius

A sleek offline music player for Android that plays your local music library — no account, no streaming, no ads. Everything runs on-device.

Screenshots

Home / Library Now Playing Queue
Home screen Now playing Queue

Features

  • Local library scan — scans managed folders, indexes songs via content providers and media store queries
  • Playlists — create and manage your own playlists, reorder songs with drag & drop
  • Background playback — keeps playing with lockscreen / notification media controls (audio_service + just_audio)
  • Shuffle & repeat — smart shuffle that keeps your current song context; all, one, and off repeat modes
  • Queue — inspect, reorder, and jump around the upcoming queue
  • Now Playing — full-screen player with artwork, colors extracted from album art, mini player on every tab, plus 9 skins (classic, risoZine, paperPress, pocketLcd, concrete, sumi, concreteNoir, sumiNight) and a custom color picker
  • Waveform visualization — extracted via compute isolate, cached per file, multiple painter styles (bars, line, ribbon, wave, dots, equalizer, blocks, neon, radial)
  • Lyrics — reads embedded LRC tags via flutter_audio_tagger with a client-side LRC parser; timed lyrics view for current track
  • Stats — listening statistics for your library
  • Themes — light, dark, and a set of custom color presets (Ocean, Nord, Rose Pine, Matrix, Cyberpunk, Custom)
  • Home widget — Android home-screen widget wired through a MethodChannel for play/pause/next/prev
  • Settings persistence — all preferences saved to Hive as JSON; schema versioned with forward migration hooks
  • Offline-first — all data (library, playlists, settings) is persisted locally with Hive

Permissions

  • READ_EXTERNAL_STORAGE / READ_MEDIA_AUDIO — library scan (declared in AndroidManifest.xml)
  • FOREGROUND_SERVICE / FOREGROUND_SERVICE_MEDIA_PLAYBACK — required for background audio
  • POST_NOTIFICATIONS — Android 13+ media notification (requested at runtime)
  • WAKE_LOCK — keeps CPU alive during playback

Architecture

lib/
  main.dart              — entrypoint, Hive init, audio_service bootstrap
  app.dart               — go_router config + top-level widget tree
  core/                  — constants, error boundary, shared widgets
  data/
    local_storage/       — Hive boxes (songs, playlists, settings) + JSON schema
  domain/
    entities/            — SongEntity, PlaylistEntity, AppSettings
  presentation/
    providers/           — Riverpod state notifiers (audio player, library, playlists, settings)
    screens/             — Home, Library, Now Playing, Queue, Playlist detail, Stats, Settings
    widgets/             — Waveform viewer, song tile, mini player, action menu
  services/
    background_audio_service.dart  — AudioPlayerHandler (audio_service)
    widget_service.dart            — Android home widget channel
    lyrics_service.dart            — embedded-lyrics cache + LRC parser
    waveform_extractor_service.dart — isolate-based waveform extraction
  • State management: Riverpod (flutter_riverpod). Top-level ProviderContainer is created in main.dart and passed through UncontrolledProviderScope.
  • Routing: go_router with deferred-loaded screens (now-playing, queue, lyrics, stats).
  • Audio stack: audio_service bridges to Android media session; just_audio handles decoding/sequencing; audio_handler lives in the isolate spawned by audio_service.init().

Tech stack

  • Flutter (Material 3) with Riverpod for state management
  • just_audio + audio_service for background playback
  • Hive for local persistence (with generated boxes for songs, playlists, settings)
  • go_router for navigation

Getting started

Requires Flutter 3.44.5 stable / Dart 3.12.2 (pinned in .metadata).

flutter pub get
flutter run

The app requests storage permissions on first launch so it can scan your audio folders.

Icons & artwork

All launcher, splash, and notification icons are generated from the design master in icon_concepts/ via the Python scripts (build_icons.py, generate_icons.py). Don't edit generated PNGs directly — re-run the scripts instead.

Building

# Analyze
~/flutter/bin/flutter analyze

# Run tests
~/flutter/bin/flutter test

# Build debug APK
~/flutter/bin/flutter build apk --debug

# Build release APK
~/flutter/bin/flutter build apk --release

# Regenerate Hive adapters after editing @HiveType classes
~/flutter/bin/dart run build_runner build
python3 build_icons.py          # Android launcher/splash/notification icons
python3 generate_icons.py       # assets/icons/*.png

Acknowledgements

This project was developed with AI assistance:

  • KAT-Coder-V2.5-Dev — the primary coding assistant, very reliable at following instructions and turning feature requests into working code
  • DeepSeek V4 Flash — secondary assistant used for larger codegen and review passes

Human oversight, design direction, and testing were provided throughout development.

About

A sleek offline music player for Android that plays your local music library

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages