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

Android Studio – Give TextView a variable

I'm trying to set a text on a TextView using a val class shoeDetails : AppCompatActivity() { private lateinit var binding: ActivityShoeDetailsBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityShoeDetailsBinding.inflate(layoutInflater) val view = binding.root setContentView(R.layout.activity_shoe_details) val title = intent.getStringExtra("Title")…

VIEW QUESTION
Back To Top
Search