I took Flutter for a round for the first time and I enjoyed every moment of it. Well, the syntax was different for me, but still liked it a lot. Here are my thoughts about my first experience with Flutter.
I work with MacOS, so I started with the Get Started: Install on macOS page. Just download the zipped sdk and add it to your
I ran the
flutter doctor command to check that everything was OK. I had some issues like install flutter plugin on Android Studio. I installed the plugin and saw this (woo hoo):
The next step was to configure my editor, in this case Android Studio. Only few clicks and I had the flutter and dart plugins installed on my editor. Easy peasy.
Let’s write some code, or at least run it.
The first step of the getting started step is to create a new flutter project in Android Studio and run it. Everything worked like the docs said, profit!
Awe yeah! Coding is here.
The goal of the code lab was to achieve infinite scrolling ListView app, called: Startup Name Generator. Something like this:
This tutorial was very informative and I learned how to build a layout; how to use an external package and the difference between StatelessWidget and StatefulWidget.
At the end of the tutorial, there was a summary of what was achieved and if I wanted to continue (yes, please), and a little teaser:
I clicked on part 2. The mission was to add a favorite icon and a navigation for the favorite names.
The first 3 steps are building the environment, so you can skip them if you did these in part 1. I learned app hot reloading, navigation (Flutter has it out of the box) and how to add icons from the flutter material design.
The last step of this tutorial contained a few links for further tutorials and knowledge-bases, but I was too eager to try something out and google the things I needed.
My first Flutter project
When I’m testing a new mobile framework or language, I like to build a simple reddit app. Fetch hot topics, see some posts and read and comment. It’s a good practice, since it combines http call, parsing objects, navigation and webview. You can see the examples on my Github, written in Kotlin and in React Native.
Don’t change a winning team
So I didn’t. I wrote a new simple reddit app with flutter. I googled how to stuff and I had my first screens:
Simple ListView with cards, containing the mission name, mission patch and success or failure.
I wanted to try image handling and camera access.
I added another screen called Picky. I added
add a photo icon on the app bar for adding a picture, and two rotate icons for rotating the image.
To sum it up, I love Flutter. The Flutter plugin for Android Studio is more than amazing, letting you build both iOS and Android. More than amazing.
You can grab the source code from here: https://github.com/yershalom/reddit_flutter
Hope you like it! If so, you can follow me on Twitter.