Search code examples
androidflutterscaffold

How to change app title in "Task Menu" Flutter


When enter task menu(android), it shows "Flutter Demo" instead of my app label string in Manifest xml file. In the screen pages, I used scaffold with no app bar, hence no title, but there's safe area widget inside.

Where shall I edit in order to have custom app tile name.

 @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: SafeArea(
              child: Column(

Solution

  • In MaterialApp() you have title property. You should change it in there.

    MaterialApp(
      title: 'HERE GOES YOUR TITLE',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('MaterialApp Theme'),
        ),
      ),
    );