how to change flutter app icon code example

Example 1: how to add icon in the app bar in flutter

AppBar(  title: Text("Hello Appbar"),  leading: Icon(    Icons.menu,  ),);

Example 2: flutter app icon

dev_dependencies:
  flutter_launcher_icons: "^0.7.3"

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"

Example 3: fluter icon change

$ flutter pub pub run flutter_launcher_icons:main

Example 4: how to add icon in the app bar in flutter

AppBar(  title: Text("Hello Appbar"),  leading: GestureDetector(      onTap: () { /* Write listener code here */ },      child: Icon(        Icons.menu,  // add custom icons also      ),  ),  actions: <Widget>[    Padding(      padding: EdgeInsets.only(right: 20.0),      child: GestureDetector(        onTap: () {},        child: Icon(          Icons.search,          size: 26.0,        ),      )    ),    Padding(      padding: EdgeInsets.only(right: 20.0),      child: GestureDetector(        onTap: () {},        child: Icon(            Icons.more_vert        ),      )    ),  ],),

Example 5: fluter icon change

dev_dependencies: 
  flutter_test:
    sdk: flutter

  flutter_launcher_icons: any

Example 6: flutter launcher icon

dependencies:
  flutter_launcher_icons: ^0.8.0