Refactor

If you have everything setup please continue if not please make sure you follow the first step.

Android#

Let's refactor android app first.
To change android package name navigate to android/app/build.gradle file

defaultConfig {
applicationId "dev.papercore.happycredit"
minSdkVersion 21
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

In here just change the applicationId with your preferred package name Now navigate to src/main/AndroidManifest.xml file there you can see at the top

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="dev.papercore.happycredit">

here change the package="dev.papercore.happycredit" with your package name. In this file you can change the app name for android also to do that you can see something like this

<application
android:name="io.flutter.app.FlutterApplication"
android:label="Happy Credit"
android:icon="@mipmap/launcher_icon">

Just change the android:label="Tagore" with your app name. Now the tricky part, navigate to kotlin folder. If your package name is like com.example just rename the folder app to com & tagore to example. If your package name is like com.hello.example you just have to create an extra folder and move MainActivity.kt. Now open MainActivity.kt and change the package name there. The file looks like below

package dev.papercore.happycredit
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}

Just change the dev.papercore.happycredit with your package name. That's all.

iOS#

Refactoring for iOS is very easy. Navigate to ios folder & open Runner.xcodeproj file. xcode-tagore.png Select Runner in left pan then change the Display Name with your app name and Bundle Identifier with your package name.