londonappbrewery / xylophone-flutter

Starter code for the Xylophone project in the Complete Flutter Bootcamp
https://www.appbrewery.co
115 stars 893 forks source link

Flutter stub project is deprecated for new M1 Macs #24

Open d1teng opened 3 years ago

d1teng commented 3 years ago

The previous project has many deprecated setup, the Audioplayers package requires v2 of the Android embedding. After which, I've encountered multiple issues with the pod setup pointing to the incorrect IPHONEOS_DEPLOYMENT_TARGET = 8.0 when it needs to be at 9.0.

Please do a new flutter create and just port over the assets for the audio files and icon resources. Others might be encountering this issue soon.

netlinx2 commented 3 years ago

Same problem here. It's not just on new Macs though...

AkshaySiddannavar commented 2 years ago

Solution :

Step 1 : Create a new flutter project at your local system

Step 2 : Copy the code given in 'main.dart' file of stub project and paste it into 'main.dart' file of your local project

Step 3 : Make an 'assets' folder in your local project

Step 4 : download sound-files from github and put them into your local 'assets' folder

Step 5 : in your local pubspec.yaml file, add dependency for your 'assets' folder

Step 6 : Rename 'MyApp()' in widget testing file to 'MaterialApp()'

Hit save(in files other than pubspec.yaml), get all dependencies(in pubspec.yaml) and you're good to go