Renaming the package
Open your terminal, change (cd) to your app directory and run this command to change the package name.
flutter pub run change_app_package_name:main com.new.package.name
Where com.new.package.name is the new package name that you want for your app.