31.57 Flutter Rename App

20210321

The app name is derived by default from the directory name, so for the default example the app is named button.

To change the name to mlhub, for example, edit pubspec.yaml:

name: MLHub
description: Explore the world of AI, Machine Learning, and Data Science.

To rename the linux app, edit linux/CMakeLists.txt:

set(BINARY_NAME "mlhub")
set(APPLICATION_ID "com.togaware.mlhub")

To change the window titles edit linux/my_applicaiton.cc:

    gtk_header_bar_set_title(header_bar, "MLHub");
...
    gtk_window_set_title(window, "MLHub");

The second change above is only relevant if there is no header bar. Otherwise the header comes from pubspec.yaml

To rename the android app, edit android/app/src/main/AndroidManifest.xml:

        android:label="MLHub"


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0