This is the 18th day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021

One of the bugs of the dish is that the new project will first change the name of the project, according to their favorite name definition, of course, including Logo modification. I just got to know Flutter, so I didn’t know the grammar and everything was unknown. It took a lot of time to change the name of the project. Now I will sort it out.

The project name of Flutter is the default application name. If you want to change the name of Flutter, try the following:

The solution

  1. Dart: Modify the title content in lib/main.dart, but not the name of the application. The side dish is understood as the in-app name. When the application is in the switching state, the title name is displayed, while the desktop application name remains unchanged, as shown in the figure:

2. It took me a long time to find the snackFlutterIt is a cross-platform application, and the project name corresponding to Android and iOS has been modified uniformly. However, I misunderstood, the application name needs to be adjusted separately in Android and iOS. Android is modified in androidmanifest.xml; IOS is changed in info.plist; As shown in figure:Tip:Project names can be inconsistent on Android and iOS!

  1. Similarly, if you need to change the app Logo, you do it on Android and iOS respectively. Android is to add images to the mipmap folder and modify them in androidmanifest.xml; For iOS, the corresponding Logo icon was added to the appicon. appiconset folder and configured in Contents. Json, as shown in the figure:

At this point, the name and Logo of the application have been changed successfully!

Remind advice

1. Although Android and iOS can set the project name and Logo differently, I suggest that the name of Android/iOS/Flutter->main.dart should be the same.
Dart ->main.dart -> web.dart -> web.dart -> web.dart -> web.dart -> web.dart
Return new MaterialApp (title: 'check in') HOME: new Scaffold(appBar: new appBar (title: New Text('Welcome to Flutter), // page title),);Copy the code

Vegetables just touch Flutter still need to learn and explore!


Source: Little Monk A Ce