Installing Flutter on a Mac

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
No comments yet. Be the first to comment.
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

As you may know, my day job is developing Ionic applications, but recently, I've seen so much traction on Flutter.
I'm not convinced yet why it would be better or if it's worthwhile learning Dart. But without trying it myself, I feel like I can't have a good opinion about Flutter.
So here we go, let's try and build some apps in Flutter and write down my findings.
Let's start with installing Flutter so we can build a basic Hello World application (Hey, who doesn't like those 😂).
I'm a big fan of Homebrew me it's the quickest way to install the Flutter. Open up your favorite terminal and execute the following command.
brew install --cask flutter
Note: At this point, it might be that I have some extra stuff already installed since it has overlap coming from Ionic.
But something cool is the option for Flutter to check if your system is up and running or might be missing some elements.
flutter doctor
This command will check if your system is ready to get started with Flutter. And should give a response similar to this:

As you can see, my system only states one issue. But some other resources you need:
Xcode: Setup and installed also accept all licensesChrome: As your browserAndroid Studio: For the Android buildsJava: Needed for Android buildsVS Code: For editing the softwareIf you are missing any of these, follow the following steps:
brew install --cask google-chromebrew install --cask android-studiobrew install --cask visual-studio-codeAs expected, Flutter comes with the option to generate a basic application with the CLI.
Let's run the following command to create our first app.
flutter create flutter_app
This will create a folder called flutter_app without code inside. Let's navigate to this folder.
cd flutter_app
And now, we can start the app for the first time by running the following command.
flutter run
It will take a while the first time, but a new Chrome window with your app should pop up.

This app comes with some basic code we can check to see how it works.
If we quickly inspect the app, we can see that all our app code is located at lib/main.dart this is where a Flutter app will start.
That's all for today. We'll look into modifying the app in another article.
You can also find this default app on GitHub.
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter