Flutter Uygulama Icon ve Adını Değiştirme

Flutter uygulamanın telefona yüklemesin durumunda uygulama iconu altında yazan uygulama adını android>app>src>main>AndroidManifest.xml dosyasında application kısımında yer alan android:label=”Uygulama Adı” değeri  ile değiştirebilirsiniz.

Uygulama iconunda flutter logosu varsayılan olarak gelmekte bunu değiştirmek için flutter_launcher_icons paketini kullanacağız. Pakete ve dokümantasyona https://pub.dev/packages/flutter_launcher_icons adresinden ulaşabilirsiniz.

İlk önce kullanacağımız icon png resmini assets/icon altına ekliyoruz.

Sonra pubsec.yaml dosyasından aşağıdaki kodları ekliyoruz.

dev_dependencies: flutter_launcher_icons: “^0.8.0”

flutter_icons: android: “launcher_icon”

ios: true

image_path: “assets/icon/icon.png”

Sonra terminalden aşağıdaki komutları çalıştırarak paketin indirilmesi ve paketin çalıştırılması ile iconun oluşturulup güncellenmesi işlemlerini sağlıyoruz.

flutter pub get

flutter pub run flutter_launcher_icons:main

 

Bir cevap yazın

E-Posta adresiniz yayınlanmayacaktır.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Siteyi kullanmaya devam ederek çerezlerin kullanılmasını kabul etmiş olursunuz.. daha fazla bilgi

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close