FlenxAudioPlayerFloat class

Player de áudio flutuante — barra fixa no bottom da tela, persiste durante o scroll. Ideal para rádio online ou trilha sonora do site.

Rádio ao vivo:

FlenxAudioPlayerFloat(
  'https://stream.minharadio.com.br/live',
  title: 'Rádio Exemplo',
  subtitle: 'Pop • Sertanejo • Ao vivo 24h',
  isRadio: true,
  accentColor: '#b5602f',
  autoplay: false,
)

Faixa com progresso:

FlenxAudioPlayerFloat(
  '/assets/podcast.mp3',
  title: 'Episódio 42',
  subtitle: 'Meu Podcast',
  accentColor: '#b5602f',
)
Inheritance

Constructors

FlenxAudioPlayerFloat(String src, {String? title, String? subtitle, bool autoplay = false, bool loop = false, bool isRadio = false, String accentColor = FlenxPalette.primary, String background = '#ffffff', bool initiallyVisible = true, Key? key})
const

Properties

accentColor String
final
autoplay bool
final
background String
final
hashCode int
The hash code for this object.
no setterinherited
initiallyVisible bool
Se false, o player começa recolhido (oculto) e pode ser aberto via JS: document.getElementById('{id}').classList.remove('fapfl-hidden').
final
isRadio bool
Modo rádio — oculta a barra de progresso e exibe indicador AO VIVO.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
loop bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
src String
URL do áudio — caminho local ou stream remoto.
final
subtitle String?
final
title String?
final

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited