Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

florent37/assets_audio_player/notification/NotificationService.kt:168:79 Unresolved reference: exo_icon_circular_play

Open FahadIqbal opened this issue 1 year ago • 1 comments

Flutter Version

My version :

Lib Version

My version :

Platform (Android / iOS / web) + version

Platform :

Describe the bug

file:///Users/.pub-cache/hosted/pub.dev/assets_audio_player-3.1.1/android/src/main/kotlin/com/github/florent37/assets_audio_player/notification/NotificationService.kt:168:79 Unresolved reference: exo_icon_circular_play Small code to reproduce

import 'package:assets_audio_player/assets_audio_player.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State {
  
  final AssetsAudioPlayer _assetsAudioPlayer = AssetsAudioPlayer();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: RaisedButton(
            child: Text("open"),
            onPressed: () {
              //open code here
            }
          ),
        ),
      ),
    );
  }
}

FahadIqbal avatar Oct 27 '24 15:10 FahadIqbal

Note: This change will not work for Flutter web platforms.

Try changing the following in pubspec.yaml:

Before:

dependencies:
  assets_audio_player: ^3.1.1

After:

dependencies:
  assets_audio_player:
    git:
      url: https://github.com/Rupakpoddar/Flutter-AssetsAudioPlayer

Rupakpoddar avatar Dec 14 '24 03:12 Rupakpoddar