First import the path package. import ‘package:path/path. dart’ as path; Then create a new target path to rename the file .
Read moreHow do I Rename a package in flutter?
According to the official flutter documentation you just need to change the ApplicationId in app/build. gradle directory . Then you have to just build your apk and the package name of the manifest file will be changed according to the ApplicationId you changed in build.
Read more