Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

dart - how to set app launcher icon in flutter?? Here is the solution

step:1

search appicon.co

step:2

select your requirement in switch(make it on or off)

upload the icon (from your local or a link as required)


step-3

To provide a name:

to use default: keep ic_launcher

or want to rename as your choice,then example_launcher

 step-4
 --------
after that click on 'generate' button, download the zip and extract

 ------------------------------------------------------------------------


step-5
--------
go to your  Flutter project 
>android 
   >app
     >src
       >main
           >res

              1.inside 'res' folder keep "drawable" and "values"

              2.You will see same named 5 folders ,replace those folders with your downloaded 
               extracted zip
----------------------------------
step-6
   ---------
 1.If you are keep (default)the name `ic_laucher`  ,then just hot restart your `project,You` will see 
the MAGIC..
 2.If you renamed there,then go to AndroidManifest.xml in (android>app>src>main) 
         edit : 




`application

    android: name=" io. flutter .app. FlutterApplication "

    android: label=" linkedin "

    android: icon="@mipmap/ your renamed one `



  After that just restart, Your work is done...

   Thank you...   :)

              

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...