skip to Main Content

Android Studio – The method 'play' isn't defined for the type 'AudioCache'

issue The method 'play' isn't defined for the type 'AudioCache'. import 'package:flutter/material.dart'; import 'package:audioplayers/src/audio_cache.dart'; void main() { runApp(XylophoneApp()); } class XylophoneApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: Center( child: TextButton( onPressed:…

VIEW QUESTION
Back To Top
Search