Platform-Specific Setup

In this section we’ll see how to change the app name and launcher icon of a Flutter app by editing the platform-specific configuration.

Setting a Custom App Name

The Dart package name (which is also the default app name) has to be composed of just lowercase letters and underscore, which isn’t really much. That’s why we are going to set our own app name by digging into the platform-specific configuration.

Setting the Android App Name

The app name displayed on Android can be changed by changing the android:label attribute of the application tag in the AndroidManifest.xml file found in appdir/android/app/src/main. This is what it would look like if we were configuring the Chat on Fire app we built in the last chapter of ...

Get Programming Flutter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.