To change the package name, Run this command to change the package name. Open terminal in your IDE and run
flutter pub get
flutter pub run change_app_package_name:main com.new.package.name
Important : your applicationId or package name must same with your package name that you’ve create on firebase console when you generate google-services.json