If you don’t like changing files in such a way then alternative way would be to use this package.
https://pub.dev/packages/rename
rename --bundleId com.newpackage.appname
pub global run rename --appname "Your New App Name"
Using this, you simply run these 2 commands in your terminal and your app name and identifiers will be changed.pub global run