Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Flutter Project Walkthrough

    nader dabitnader dabit

    In this lesson we’ll walk through the example project that the Flutter CLI created for us & discuss the files & folders that were created for us.



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    Instructor: Now that we've created our Flutter application, let's open the project in our text editor and walk through some of the files and folders that were created for us.

    First, we have the Android and iOS folders which hold the platform-specific code for each platform. You shouldn't have to make many changes in these folders unless you're going to do any platform-specific customization.

    Lib is the main folder where you will write all of your application code. The default project configuration template only contains the main.dart file which is the entry point for the Flutter application.

    As the name suggests, the Test folder is used to store and manage testing code for the app. The gitignore file is used to store the list of files which need to be ignored when the source code is uploaded or checked into any Git versioning system.

    In many languages and environments, a package manager is used to manage third-party or resusable components and modules. In the case of Dart, the package manager is called Pub. This is style is used by Pub to manage the packages for this project.

    Just like .packages, pubspec.lock is used by the Pub package manager in order to get the concrete versions and other identifying information for every dependency a package relies on.

    Pubspec.yaml is the file that you'll use when you need to manage third-party packages or dependencies for your application. This file is used by the Pub package manager to get and load the packages used in the project.