codifyiq_audio_message 2.0.0
codifyiq_audio_message: ^2.0.0 copied to clipboard
A chat-style audio message player with play, pause, scrubbing, and a pluggable audio playback backend.
2.0.0 #
- Breaking: now built on
material_ui, Flutter's standalone Material library, instead of the copy bundled in the Flutter SDK. Your app must usematerial_uitoo, otherwise the widgets won't pick up your theme. To migrate your app, rundart fix --apply --code=migrate_design_widgets. - Breaking: requires Flutter 3.44 / Dart 3.12 or later.
- Breaking:
AudioMessageWidgettakes anAudioMessageSourceinstead of aurlstring:.uri(with optional HTTPheadersfor private storage),.filefor local files, or.assetfor bundled assets.AudioPlayerBackend.setUrlis nowsetSource. - Breaking: one
AudioMessageControllernow plays many messages. Create it without a URL, share it between the players on a screen, and give each player anid: only one message plays at a time, and a message keeps playing when its player is disposed, for example when a chat bubble scrolls out of view. A player without a controller still creates its own. - A URI source is identified by its URI alone, so rebuilding it with new
headers, such as a refreshed auth token, keeps the message playing. durationshows a known length before the clip loads, instead of00:00.colorandtextStyleset the play button, slider and time readout, for example to match a chat bubble.- Dragging the slider now moves smoothly and seeks once when released, instead of fighting playback and jumping back to the current position. The time readout follows the drag, and the play button no longer flickers while seeking during playback.
AudioMessageController.seekmovespositionto the target at once, and a failed seek shows the error state.
1.0.0 #
- Initial release as a standalone package, extracted from
codifyiq_core_components. AudioMessage,AudioMessageController, and theAudioPlayerBackendinterface — a chat-style audio player with play/pause, scrubbing, and a swappable playback backend (defaults tojust_audio).