Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Flutter for Beginners
Flutter for Beginners

Flutter for Beginners: An introductory guide to building cross-platform mobile applications with Flutter and Dart 2

eBook
€8.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Flutter for Beginners

An Introduction to Dart

The Dart language is present at the core of the Flutter framework. A modern framework such as Flutter requires a high-level modern language to be capable of providing the best experience to the developer and making it possible to create awesome mobile applications. Understanding Dart is fundamental to working with Flutter; developers need to know the origins of the Dart language, how the community is working on it, its strengths, and why it is the chosen programming language to develop with Flutter. In this chapter, you will review the basics of the Dart language and be provided with some links to resources that can help you on your Flutter journey. You will review Dart built-in types and operators, and how Dart works with object-oriented programming (OOP). By understanding what the Dart language provides, you will be able to comfortably experiment...

Getting started with Dart

The Dart language, developed by Google, is a programming language that can be used to develop web, desktop, server-side, and mobile applications. Dart is the programming language used to code Flutter apps, enabling it to provide the best experience to the developer for the creation of high-level mobile applications. So, let's explore what Dart provides and how it works so we can later apply what we learn in Flutter.

Dart aims to aggregate the benefits of most of the high-level languages with mature language features, including the following:

  • Productive tooling: This includes tools to analyze code, integrated development environment (IDE) plugins, and big package ecosystems.
  • Garbage collection: This manages or deals with memory deallocation (mainly memory occupied by objects that are no longer in use).
  • Type annotations (optional...

Understanding why Flutter uses Dart

The Flutter framework aims to be a game-changer in mobile app development, providing all of the tools needed by the developer to make awesome applications with no drawbacks in performance and scalability. Flutter has, in its core structure, multiple concepts focused on app performance and the user interface. To deliver the best output to the developing world with high performance that compares to the official native SDKs, Flutter uses the support of Dart to provide tools that contribute to developer productivity in the development phase and to build applications optimized for publication.

As we have seen before in the Getting started with Dart section, Dart is mature enough and robust with many tools that contribute to Flutter's success. Let's understand why Dart was the perfect choice for the Flutter framework...

Introducing the structure of the Dart language

If you already know some programming languages inspired by the old C language or have some experience of JavaScript, much of the Dart syntax will be easy for you to understand. Dart provides the most typical operators for manipulating variables. Its built-in types are the most common ones found in high-level programming languages, with a few particularities. Also, control flows and functions are very similar to typical ones. Let's review some of the structure of the Dart programming language before diving into Flutter.

If you already know Dart, you can use this section as a review of the Dart syntax; otherwise, you can check out this introduction and refer to the Dart language tour for a quick and easy learning guide on Dart: https://dart.dev/guides/language/language-tour.

...

Introduction to OOP in Dart

In Dart, everything is an object, including the built-in types. Upon defining a new class, even when you don't extend anything, it will be a descendant of an object. Dart implicitly does this for you.

Dart is called a true object-oriented language. Even functions are objects, which means that you can do the following:

  • Assign a function as a value of a variable.
  • Pass it as an argument to another function.
  • Return it as a result of a function as you would do with any other type, such as String and int.

This is known as having first-class functions because they're treated the same way as other types.

Another important point to note is that Dart supports single inheritance on a class, similar to Java and most other languages...

Summary

We have finished our introduction to the Dart language, and I hope you liked what you have read so far. In this first chapter, we presented the available tools to start your Dart language studies, discovered what a basic Dart program looks like, and learned about the basic Dart code structure. 

We demonstrated how the Dart SDK works, and the tools it provides that help with Flutter app development and make the Flutter framework succeed in its objectives.

We reviewed some important concepts of the Dart language with useful links to the official language guides to support the developer. Additionally, we reviewed functions and parameter specifications, such as named/positional and optional/required, and introduced Dart OOP.

In the next chapter, we will advance toward the OOP concept of programming in the Dart language and its particularities. We will also&...

Further reading

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Get up to speed with the basics of Dart programming and delve into Flutter development
  • Understand native SDK and third-party libraries for building Android and iOS applications using Flutter
  • Package and deploy your Flutter apps to achieve native-like performance

Description

Google Flutter is a cross-platform mobile framework that makes it easy to write high-performance apps for Android and iOS. This book will help you get to grips with the basics of the Flutter framework and the Dart programming language. Starting from setting up your development environment, you’ll learn to design the UI and add user input functions. You'll explore the navigator widget to manage app routes and learn to add transitions between screens. The book will even guide you through developing your own plugin and later, you’ll discover how to structure good plugin code. Using the Google Places API, you'll also understand how to display a map in the app and add markers and interactions to it. You’ll then learn to improve the user experience with features such as map integrations, platform-specific code with native languages, and personalized animation options for designing intuitive UIs. The book follows a practical approach and gives you access to all relevant code files hosted at github.com/PacktPublishing/Flutter-for-Beginners. This will help you access a variety of examples and prepare your own bug-free apps, ready to deploy on the App Store and Google Play Store. By the end of this book, you’ll be well-versed with Dart programming and have the skills to develop your own mobile apps or build a career as a Dart and Flutter app developer.

Who is this book for?

This book is for developers looking to learn Google's revolutionary framework Flutter from scratch. No prior knowledge of Flutter or Dart is required; however, basic knowledge of any programming language will be helpful.

What you will learn

  • Understand the fundamentals of the Dart programming language
  • Explore the core concepts of the Flutter UI and how it compiles for multiple platforms
  • Develop Flutter plugins and widgets and understand how to structure plugin code appropriately
  • Style your Android and iOS apps with widgets and learn the difference between stateful and stateless widgets
  • Add animation to your UI using Flutter s AnimatedBuilder component
  • Integrate your native code into your Flutter codebase for native app performance

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 12, 2019
Length: 512 pages
Edition : 1st
Language : English
ISBN-13 : 9781788996082
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Sep 12, 2019
Length: 512 pages
Edition : 1st
Language : English
ISBN-13 : 9781788996082
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 54.98
Flutter Projects
€24.99
Flutter for Beginners
€29.99
Total 54.98 Stars icon
Banner background image

Table of Contents

20 Chapters
Section 1: Introduction to Dart Chevron down icon Chevron up icon
An Introduction to Dart Chevron down icon Chevron up icon
Intermediate Dart Programming Chevron down icon Chevron up icon
An Introduction to Flutter Chevron down icon Chevron up icon
Section 2: The Flutter User Interface - Everything is a Widget Chevron down icon Chevron up icon
Widgets: Building Layouts in Flutter Chevron down icon Chevron up icon
Handling User Input and Gestures Chevron down icon Chevron up icon
Theming and Styling Chevron down icon Chevron up icon
Routing: Navigating between Screens Chevron down icon Chevron up icon
Section 3: Developing Fully Featured Apps Chevron down icon Chevron up icon
Firebase Plugins Chevron down icon Chevron up icon
Developing Your Own Flutter Plugin Chevron down icon Chevron up icon
Accessing Device Features from the Flutter App Chevron down icon Chevron up icon
Platform Views and Map Integration Chevron down icon Chevron up icon
Section 4: Advanced Flutter - Resources to Complex Apps Chevron down icon Chevron up icon
Testing, Debugging, and Deployment Chevron down icon Chevron up icon
Improving User Experience Chevron down icon Chevron up icon
Widget Graphic Manipulations Chevron down icon Chevron up icon
Animations Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.9
(11 Ratings)
5 star 45.5%
4 star 18.2%
3 star 18.2%
2 star 18.2%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Harold B. Mittiger Mar 31, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author knows how to develop real-world mobile apps using Flutter. If that's what you want to do then this book will provide many valuable insights, save you a great deal of work and ensure that you have a performant product.For example, the chapter on background isolates deals with a vital issue for non-trivial apps (such as those that need networking, e.g. RESTful clients) in a clear and thorough manner. Background isolates are poorly understood by most Flutter developers, not least because the documentation is patchy and lacks a deep exposition (with notoriously hard-to-follow and incomplete online articles): that exposition is provided by the author.Buying this book is a no-brainer.
Amazon Verified review Amazon
Emiliano Mar 13, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Adoro questo libro insieme a quello di Alberto Miola è uno dei migliori testi per flutter oggi sul mercato
Amazon Verified review Amazon
Andrii Halunets Mar 19, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The biggest plus of this book is the description of working with isolates and true multithreading in flutter, and not just futures and streams that are not multithreading. This information you never found in any other flutter book.
Amazon Verified review Amazon
Roberto Jan 17, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Perfect for introducing flutter!
Amazon Verified review Amazon
ian schoenrock Feb 19, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book has a lot of content, especially since flutter is so new it was nice to see that this book covers all the topics you need to know in order to make apps using flutter. Aside from covering everything you need to know in regards to creating meaningful apps, it was also fun to go over machine learning and fire base. As a software developer who uses flutter professionally, I would recommend this to anyone who would like to get started using flutter, or anyone who would like to supplement there existing knowledge of flutter. This book reads great as a page tuner, or as a reference.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.