Flutter Crash Course #4 - Making a New Flutter Project

Net Ninja · Beginner ·🛠️ AI Tools & Apps ·2y ago

Key Takeaways

Creates a new Flutter project and sets up the development environment

Full Transcript

all right then so now we have flutter installed the next step is to create a brand new flutter project so open up a terminal and navigate to the directory you want to create this project in you can see I'm in a folder called flutter project and by the way when you're creating a new project with flutter try not to have any directory with spaces in or special characters if you need to use a space use an underscore instead all right so the way we create a new flutter project is by saying flutter then create and then a project name and I'm going to call this coffee underscore card and same goes for the project names use it underscore not a space or anything like that all right so press enter and this is going to go ahead and create this new flutter project for us all right so we can see that was really quick it's all done now so the next step is to CD into that new directory so CD and then coffee underscore card and then we can use flutter run to run the application however I'm not going to do that just yet what I'm going to do is open this up in vs code by type in code space and then a DOT and press enter and this is going to crack open vs code for me inside this project directory all right then so here we go this is our new project now just a quick reminder that before you go any further if you've not already definitely install the flutter package for vs code just go to extensions type in flutter it's going to be the first option right here I already have it installed but if you install this it's going to automatically install the darts um extension as well and this flutter extension comes with with extra tooling for creating flut applications so definitely definitely make sure you install that now if you've not already all right so then now what I'd like to do is take this starter project that we've got right here I mean we don't know what any of this is yet but it is a starter project and we can run this in an emulator now to do that we want to make sure that this status bar down here in vs code is showing so go to view and then go to appearance and then make sure you've got a little check next to status bar click if if not you should see this and then over here on the right where it says Windows this is our Target device for the application so currently it's windows but we want to select um a different device this one right here this emulator that we created in an earlier lesson this is the Android emulator so if you've not already created an Android emulator make sure you do that I show you how to do that in the previous two lessons so click on this right here and that is going to launch this particular emulator all right and that's over here woohoo so we can see now some kind of phone device right here the flutter app isn't showing on it we have to manually run the flutter application to see over here so let me just scoot that out the way again and you can do this in a couple of different ways if you want to you can open up your terminal and you can type flutter run we're not going to do that instead what I like to do is go to the lib folder and then open the main. file and then go to this play button right over here click on the Arrow next to it and then say run without debugging click on this and this is going to start up the application for us now we have to do this from the main doart file if it's any other file then it's not going to show this play button over here so I'm going to cross off this for a second and then just bring over the emulator again and you should see in a second the flutter application spin up on here all right and now we can see that loading right here in a second we should see the application itself all right cool and this is the start application we get when we create a new flutter application now it might have taken a little bit longer for yours to load up especially if it's the first time you're booting up an application on a new emulator you've recently created but it should load after a minute or two all right so what I'm going to do now is just quickly resize the windows a little bit so we can have this on the right and then this on the left okay so that looks a little bit better now when you run your flutter application you're going to notice this little two bar right here which you can move around I'm going to keep mine there there's a few different icons on here this one is to stop the application this one right here this green arrow is to do a full restart on the application and when we do that it's going to take it to its original state so it's not going to preserve any state or data within it by that I mean something like this look at this number when I click on the plus sign it goes up and that is essentially the state of this application this number right it uses it now if I do a full restart it's going to take the application back to the original state and that's going to go back to zero so it doesn't preserve that number that we had now this one right here this lightning icon this is a hot reload this does preserve State however for the time being we're not going to be using hot reload I will explain that later on in like two or three videos time for now if we make a change in the code and we want to see that change over here we're going to have to do a full restart of the application okay all right so now we have a new flutter project and we've seen how to get that up and running in this emulator in the next lesson I'm going to go over just a little bit these files and folders over here and maybe a little bit inside main. d as well just so you've got a rough idea of what everything is

Original Description

In this flutter tutorial series, you'll learn how to make mobile apps with flutter, from scratch. 🥷🏼🔥 Get the Flutter Masterclass Course: https://netninja.dev/p/flutter-masterclass 💎 Use promo FLUTTERNINJA50 for 50% off! 🥷🏼🔥 Sign up to Net Ninja Pro: https://netninja.dev/p/net-ninja-pro 📂🥷🏼 Access the course files on GitHub: https://github.com/iamshaunjp/flutter-masterclass 🔗🥷🏼 Flutter Getting Started Guides - https://docs.flutter.dev/get-started/install 🔗🥷🏼 Install Node.js - https://nodejs.org/en 🔗🥷🏼 VS Code - https://code.visualstudio.com/ 🔗🥷🏼 DartPad (Dart sandbox) - https://dartpad.dev/ 🔗🥷🏼 Homebrew (for mac) - https://brew.sh/ 🔗🥷🏼 Zapp (Flutter sandbox) https://zapp.run/new
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Net Ninja · Net Ninja · 0 of 60

← Previous Next →
1 Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
2 Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
3 Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
4 GraphQL Tutorial #1 - Introduction to GraphQL
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
5 GraphQL Tutorial #2 - A Birdseye View of GraphQL
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
6 GraphQL Tutorial #3 - Project (stack) Overview
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
7 GraphQL Tutorial #4 - Making Queries (front-end preview)
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
8 GraphQL Tutorial #5 - Express App Setup
GraphQL Tutorial #5 - Express App Setup
Net Ninja
9 GraphQL Tutorial #6 - Setting up GraphQL
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
10 GraphQL Tutorial #7 - GraphQL Schema
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
11 GraphQL Tutorial #8 - Root Query
GraphQL Tutorial #8 - Root Query
Net Ninja
12 GraphQL Tutorial #9 - The Resolve Function
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
13 GraphQL Tutorial #10 - Testing Queries in Graphiql
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
14 GraphQL Tutorial #11 - GraphQL ID Type
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
15 GraphQL Tutorial #12 - Author Type
GraphQL Tutorial #12 - Author Type
Net Ninja
16 GraphQL Tutorial #13 - Type Relations
GraphQL Tutorial #13 - Type Relations
Net Ninja
17 GraphQL Tutorial #14 - GraphQL Lists
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
18 GraphQL Tutorial #15 - More on Root Queries
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
19 GraphQL Tutorial #16 - Connecting to mLab
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
20 GraphQL Tutorial #17 - Mongoose Models
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
21 GraphQL Tutorial #18 - Mutations
GraphQL Tutorial #18 - Mutations
Net Ninja
22 GraphQL Tutorial #19 - More on Mutations
GraphQL Tutorial #19 - More on Mutations
Net Ninja
23 GraphQL Tutorial #20 - Updating the Resolve Functions
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
24 GraphQL Tutorial #21 - GraphQL NonNull
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
25 GraphQL Tutorial #22 - Adding a Front-end
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
26 GraphQL Tutorial #23 - Create React App
GraphQL Tutorial #23 - Create React App
Net Ninja
27 GraphQL Tutorial #24 - Book List Component
GraphQL Tutorial #24 - Book List Component
Net Ninja
28 GraphQL Tutorial #25 - Apollo Client Setup
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
29 GraphQL Tutorial #26 - Making Queries from React
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
30 GraphQL Tutorial #27 - Rendering Data in a Component
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
31 GraphQL Tutorial #28 - Add Book Component
GraphQL Tutorial #28 - Add Book Component
Net Ninja
32 GraphQL Tutorial #29 - External Query File
GraphQL Tutorial #29 - External Query File
Net Ninja
33 GraphQL Tutorial #30 - Updating Component State
GraphQL Tutorial #30 - Updating Component State
Net Ninja
34 GraphQL Tutorial #31 - Composing Queries
GraphQL Tutorial #31 - Composing Queries
Net Ninja
35 GraphQL Tutorial #32 - query variables
GraphQL Tutorial #32 - query variables
Net Ninja
36 GraphQL Tutorial #33 - Re-fetching Queries
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
37 GraphQL Tutorial #34 - Book Details Component
GraphQL Tutorial #34 - Book Details Component
Net Ninja
38 GraphQL Tutorial #36 - Styling the App
GraphQL Tutorial #36 - Styling the App
Net Ninja
39 GraphQL Tutorial #35 - Making a Single Query
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
40 Build Apps with Vue & Firebase - Udemy Course
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
41 Updated Vue & Firebase Course (Udemy)
Updated Vue & Firebase Course (Udemy)
Net Ninja
42 Vue & Firebase Real-time Chat (Preview) #1 - Intro
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
43 Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
44 Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
45 Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
46 Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
47 Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
48 Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
49 Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
50 Object Oriented JavaScript Tutorial #1 - Introduction
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
51 Object Oriented JavaScript Tutorial #2 - Object Literals
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
52 Object Oriented JavaScript Tutorial #3 - Updating Properties
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
53 Object Oriented JavaScript Tutorial #4 - Classes
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
54 Object Oriented JavaScript Tutorial #5  - Class Constructors
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
55 Object Oriented JavaScript Tutorial #6 - Class Methods
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
56 Object Oriented JavaScript Tutorial #7 - Method Chaining
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
57 Object Oriented JavaScript Tutorial #8 - Class Inheritance
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
58 Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
59 Object Oriented JavaScript Tutorial #10 - Prototype
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
60 Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja

Related Reads

📰
AI Spend: The Most Fragmented Line Item In The Enterprise
Manage AI spend as a strategic investment portfolio to maximize returns and minimize fragmentation
Forbes Innovation
📰
One CLI for Every Stage of Writing a Paper — Proposal to Defense
Streamline your academic writing workflow with a single CLI tool, reducing stress and increasing productivity
Dev.to AI
📰
Powerful CAPTCHA Solver API Built for Modern Business Applications
Learn how to integrate a CAPTCHA solver API into your business applications to automate workflows and improve efficiency
Dev.to AI
📰
How AI Is Solving The Most Persistent Problem Of Legacy Application Modernization: The Knowledge Gap
AI helps solve the knowledge gap in legacy application modernization by recovering institutional knowledge
Forbes Innovation
Up next
Claude AI On-Page SEO Analyzer Tool (FREE) | Complete SEO Audit & Content Optimization
Quick Tips - Web Desiign & Ai Tools
Watch →