Chapter 6
Flutter and Dart
IN THIS CHAPTER
Working with Flutter
Using the Dart language
When the mobile computing market arrived, developers rushed to create apps for iPhone and Android devices. Initially, Google endorsed Java as the official programming language for Android, but it shifted its support to Kotlin instead.
Unfortunately, writing apps in Java or Kotlin meant you had to rewrite the entire app all over again in Objective-C or Swift to create an iPhone app. Forcing programmers to learn and write apps in two completely different languages wasn’t practical. That’s why Google released Flutter in 2017.
The idea behind Flutter is to create a universal user interface (UI) framework that would allow developers to design an app that would run on Android and iOS with little or no modifications.
After you create a UI using Flutter, the next step is to make it actually work by using a programming language called Dart. Where Flutter focuses on the UI, the Dart programming language focuses on the actual code (algorithms) that you write to calculate results and create useful information of some kind.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
Initially, Flutter was designed to let you write one program that could run on both ...