Displaying "Flutter Demo" instead of App's Label Name in recent apps

Viewed 43

My app's label name is Inshorts Clone, but instead of showing Inshorts Clone, it is showing Flutter Demo in recent apps.
How to change 'Flutter Demo'?

Here is a screenhot

enter image description here

3 Answers

In main.dart

MaterialApp(
  debugShowCheckedModeBanner: false,
  title: 'Flutter Demo', // change to Inshorts Clone

you can change name accordingly

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "DEMo ",
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(),
    );
  }
}

Add title: "DEMo ",

For android go to this path android/app/src/main and change this in AndroidManifest.xml:

<application
    android:label="Flutter Demo" 
...
>

For iOS go to this path ios/Runner and change this in info.plist:

<key>CFBundleDisplayName</key>
<string>Flutter Demo</string>

Then stop your app and build it again and you will see the changes.

Related