I followed this guide and got it working:
https://www.geeksforgeeks.org/flutter/flutter-install-pod-in-windows-and-macos/