Thursday, August 25, 2022

How to Create a New Flutter Project and What to Do with It

 So a few weeks ago I started learning Flutter, and here are what I learned:

1. To create a new project, go inside a folder and type:

flutter create --org com.yourdomain appname

2. You can add a dependency by typing this:

flutter pub add google_mobile_ads

3. Set the MinSdkVersion to 24 (This is needed for Google Ad if I'm not mistaken).

4. Set the app icon using this package:

https://pub.dev/packages/flutter_launcher_icons

6. Add Google Ad ID, the new Google Ad system requires you to add this permission on the manifest.

7. Sign the Keystore.

8. Change the label name of the project.


0 comments:

Post a Comment