Flutter For Dummies
eBook - ePub

Flutter For Dummies

Barry Burd

Share book
  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Flutter For Dummies

Barry Burd

Book details
Book preview
Table of contents
Citations

About This Book

Create awesome iOS and Android apps with a single tool!?

Flutter is an app developer's dream come true. With Google'sopen sourcetoolkit, you can easily build beautiful apps that workacross platforms using a single codebase. This flexibility allows you to get your work out to the widest possible audience. With Flutter already being used by thousands of developers worldwide in a market where billions of apps are downloaded every year, now is the right time to get ahead of the curve with this incredible tool.?

Flutter for Dummies ?is your friendly, ground-up route to creating multi-platform apps.? ? ??

From how to construct your initial frameworks to writing code in Dart, you'll findthe essentialsyou need to ride the Flutter revolutionary wave to success. This book includes how to create an intuitive and stunning UI, add rich interactivity, and easily pull in data. You'll also see how Flutter features like Hot Reload—providing sub-second refreshes as you refine your work—help you make sure your app is a delight to use.

  • Start simple: follow steps to build a basic app
  • It's alive! Keep connected to online data
  • It moves! Make things fun with animated features
  • Get the word out: use tips to expand your audience

Whether you're a fledgling developer or an expert wanting to add a slick feather to your programming cap, join the Flutter revolution now and soar above the rest!

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Flutter For Dummies an online PDF/ePUB?
Yes, you can access Flutter For Dummies by Barry Burd in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Mobile Devices. We have over one million books available in our catalogue for you to explore.

Information

Publisher
For Dummies
Year
2020
ISBN
9781119612629
Edition
1
Part 1

Getting Ready

IN THIS PART 

Working through the nuts-and-bolts of mobile app development
Prepping your development computer
Running sample programs
Chapter 1

What Is Flutter?

IN THIS CHAPTER
check
What makes Flutter great
check
Alternatives to Flutter
check
Some boring terminology :-(
Several years ago, I won a smartphone in a raffle at an app developer conference. What a joy it was to win something! The experience made me feel that the entire cosmos favored me. Every time I used that phone, I felt like a big shot.
Eventually, the phone’s battery became so weak that I had to charge it every hour. I didn’t realize that the phone was still under warranty, so I tried to replace the phone’s battery myself. I bought a new battery from an online vendor. The instructions told me how to take the case apart, unhook the circuit connections, and remove the old battery from its cradle.
Everything went nicely until the part about removing the old battery. The instructions said to pull on a little tab, but I couldn’t find a tab. So, I tried for several minutes to get a grip on the battery.
The battery wasn’t budging, so I found a little screwdriver and tried to pry the battery from its tight surroundings. That’s when I heard a pop, smelled smoke, and realized that the phone’s battery had caught fire.
Fast-forward to the next afternoon. I was wandering past an electronics shop, so I went in and asked whether the shopkeeper might be able to fix my phone. “Yes,” he said. “Bring it in the next time you’re in the neighborhood. I can fix any phone.”
You should have seen the look on the shopkeeper’s face when, later that day, I brought in the charred, bent-up, barely recognizable phone. I would have included a picture in this book but, alas, I couldn’t take a picture. I had no phone.
I still remember this phone battery story from beginning to end. I remember the joy of winning a free phone, the shock of seeing it go up in flames, and the look of horror on the shopkeeper’s face. But my most powerful memory comes from the moment I opened the phone’s case: Inside that little case, I saw enough circuitry to make me dizzy. Having done some electrical work in my own home, I’d handled thick 10-gauge wires and hefty 220-volt connectors. I had replaced desktop computers’ sound cards, laptop computers’ hard drives, and the SSD inside a tightly packed MacBook Air. But this smartphone was amazing. The circuit board looked like a microchip in its own right. The connectors were so tiny that I wondered how signals could reliably squeeze through them.
No doubt about it: Mobile phones are complicated beasts. So how do they work? What makes them tick? What’s going on inside each of those remarkable gadgets?

Hardware and Software (Things You May Already Know)

A mobile phone is really a small computer. And, like any computer, a mobile phone operates on several layers. Figure 1-1 shows you a few of those layers.
Hardware is the stuff you can touch. It’s the bottom layer of the diagram in Figure 1-1. Hardware consists of items like circuitry, memory, and the battery.
Electrical signals that travel along the hardware’s circuits make the hardware do what you want it to do. These signals encode instructions. Taken as a whole, these instructions are called software.
When people create software, they don’t describe each electrical signal that travels through the hardware’s circuitry. Instead, people write source code — instructions that look something like English-language instructions. One source code instruction can be shorthand for hundreds or thousands of electrical signals.
A collection of source code instructions that perform a particular task (word processing, web browsing, managing a smart thermostat, or whatever) is called a program. A person who writes these instructions is a programmer or — a fancier-sounding term — a developer. The person who runs a program on their own device is a user.
Snapshot of a conceptual view of a mobile phone.
FIGURE 1-1: A conceptual view of your mobile phone.
Just as people communicate using many spoken languages, programmers write source code using many programming languages. If you create iPhone apps, you probably write code in either the Swift language or the Objective-C language. If you create Android apps, you’re likely to write code in either Kotlin or Java.
When you create a Flutter app, you write code in the Dart programming language. Here’s a complete Dart language program:
main() => print('Hello');
This program displays the word Hello on the screen. It’s not very useful, but please be patient. This is only Chapter 1!
Figure 1-1 distinguishes between two kinds of software:
  • Operating system (OS) software runs whenever the device is turned on.
    OS software manages the device and provides ways for the user to interact with the device. Devices made by Apple, such as iPhones and iPads, run the iOS operating system. Android phones and tablets run the Android operating system (of course).
  • Application programs do the work that users want done.
    Apps to make phone calls, apps to read email, calendar apps, web browsers, and games are examples of application programs. As a Flutter developer, your job is to create application programs.
By one estimate, the popular operating system named Linux consists of nearly 28 million instructions. No one can deal with that much code, so operating systems are divided into layers of their own. Figure 1-1 shows only four of a typical operating system’s many layers:
  • A kernel performs the operating system’s most fundamental tasks.
    The kernel schedules apps to be run, manages a device’s memory and files, provides access to input and output, and does man...

Table of contents