Setting up the Flutter app Icon, Title and dealing with conflicting packages. Here’s how.

Mustafa Tahir
2 min readJun 16, 2022

--

The things that’s been highlighted in the this article’s title are most common issues we face as the Flutter packages keep on upgrading. I am using the word “issues” because as of the other packages, developers face conflicts when adding the related packages for their applications. However, today’s goal is to wrap up the mentioned issues. So let’s get started.

Conflicting Packages

What are conflicting app packages and why it occurs?

You might have seen this warning

Snippet#1

ambiguous organization in existing files: {com.ok, com}. the — org command line argument must be specified to recreate project.

Why it occurs

Whenever we use any kind of dev dependencies and that results in a failure, we might face this issue.

What’s the fix?

This error seems complex, but it really isn’t.

As in the above snippet, this part “{com.ok, com}”.

Com -Current Flutter package name

but “com.ok” highlights that in some files a previous package is being used.

To get rid of this issue, simply replace com.ok with your current package name, and then run this command.

Snippet#2

flutter create .

This simply wraps the whole thing up and you’re good to go.

Setting up a new Icon

Add this package

Next, after end of dev dependencies section, simply add these lines of code.

Snippet#3

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

Note: Place this code appropriately, in case of failure, you would receive indentation.

After you’re done, under terminal run these commands.

Snippet#4

flutter pub get
flutter pub run flutter_launcher_icons:main

Run the app and test.

Yes, we have successfully changed our app icon

Setting up a new title

Add this package

After dev_dependencies, add these lines.

Snippet#5

flutter_launcher_name:
name: "your app icon"

Secondly, under terminal run these commands.

Snippet#6

flutter pub get
flutter pub run flutter_launcher_name:main

Run the app.

Yes, we have successfully changed our app title.

This sums up the article!!

However, If you face any difficulty, reach out to me on my YouTube Channel or GitHub, or Medium itself.

👏 this one if you have learned something new!

--

--