If Flutter is something new to you, then you should know that Flutter is a Google-backed cross-platform software development framework. A Flutter app can be developed, built for, and deployed on multiple platforms from a single codebase.
Currently, the supported platforms are Android, iOS, web, macOS, Linux, and Windows.
Almost a year ago I was taking a look at what Flutter was capable of in terms of cross-platform and why cross-platform might be a good choice. The points I made there are still valid.
Here, we'll go through a short timeline of Flutter, its current state, run a test app on all supported platforms (after a bit of setup), draw some insights and improvement ideas, and take a look at what the future might bring. …
A simple web app called The Background App. It'll be just a canvas colored with a default color. We'll be able to manipulate the color by passing it as a parameter in the URL of the browser.
Why is this useful? Sometimes I want to grab screenshots of certain on-screen elements and have a specific color fill as background. So the use case will be that we'll go to that web app, set the desired color, and bring the elements we want to capture on top. …
The Open Location Code (OLC) is a geocoding system developed by Google that was released in October 2014. Location codes created by the OLC system are referred to as Plus Codes. These codes are supported by Google Maps search since August 2015.
Plus Codes are designed to be used like street addresses and can be useful in places where there is no formal system to identify buildings, such as street names, house numbers, and postcodes.
In the following examples, we'll use Google's global headquarters location.
The latitude and longitude for their headquarters are 37.422062, -122.08406.
The mail address is 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA. …
MagSafe is one of the new things that Apple unveiled with its iPhone 12 line-up in late 2020.
This technology created a special category of accessories from Apple or third-party manufacturers. This is how we got the iPhone MagSafe Charger, wallets, the colorful cases, car mounts, and many others.
The MagSafe Charger is one of the new accessories from Apple that uses this "innovative" technology.
“The MagSafe Charger makes wireless charging a cinch.”
I have the charger for more than a week. Using it wasn't disappointing but it could be better.
The charger just snaps firmly in place and it works. Although it charges slower than the lightning cable, it is more convenient to just snap and charge, rather than plug-in and out the cable connector. …
My website is almost as simple as it gets, having just 2 "pages": home and contact.
It is more like a business card where people can see the services provided by the Constanting sole proprietorship and they can get in contact if they require my services.
The website is responsive having a layout for mobile devices and one for the rest.
I'll provide the project code at the end as a Git repository, though I won't go into detail on all nuts and bolts that make up the website. I'll detail only what I considered challenging in the process. …
This example is provided as a FlutterPen and I won’t detail how to create a Flutter app. Instead, I will explain the code that manages the state as a decimal value using bitwise operators like AND, OR, or NOT.
We’ll alter a state using the WASD keys (or the equivalent arrow keys ⇧⇦⇩⇨) and use that state to move an object on the screen.
That object will be a logo and its default position will be centered on the screen. …
Mankind evolved, slowly I might say, from number system to number system and, for now, most of us adopted and use the decimal system in our everyday life.
There are many other numeral systems that we still use for specific tasks and some that are long forgotten.
We'll go through some of them.
We’ll start with the Roman numeral system that originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages.
It is an additive system and has 7 symbols (I, V, X, L, C, D, and M corresponding in value to 1, 5, 10, 50, 100, 500, and 1000). …
If you're a programmer, you may already have some notions of numeral systems and you've interacted with a couple of them.
If not, then it'll be a bit harder to feel at home going forward and it may help to get familiar:
For understanding the following example, it is very important to understand the binary system and its operators. In it, we’ll use only the & (AND) and ^ (XOR) operators. AND will be used to determine whether a particular bit is 1 or 0. XOR will be used to switch particular bits between 1 and 0.
There are 10 types of people in this world, those who understand binary and those who don’t. …
Null safety is the guarantee within an object-oriented programming language that the object references will never have null values.
That translates into 0 "chances" of getting a null reference error. So no more unexpected application crashes caused by this "billion-dollar mistake", as Tony Hoare called the invention of the null pointer.
Currently, JetBrain’s Kotlin and Apple’s Swift are the ones of the most popular programming languages that use null-safe types by default. Soon, Google’s Dart will join the select club.
The types in our code will be considered non-nullable by default. …
CodePen came on my radar when the Flutter functionality was added in.
Until that moment, for me, it was just one of the many HTML/CSS/JS code snippets interpreters out there and didn’t pop out of the crowd.
I didn’t jump right in because I was using DartPad for quick tests of Dart/Flutter code snippets.
CodePen recently announced a month of Flutter challenges and I like being challenged. There are 4 in a month (1 each week) and touch increasingly complex topics of a chosen subject. This month that subject will be Flutter, the first topic will be around the Stack widget, and the 6th of July 2020 will be the start date for these challenges. …