Flutter in Action
Eric Windmill
  • MEAP began September 2018
  • Publication in Fall 2019 (estimated)
  • ISBN 9781617296147
  • 350 pages (estimated)
  • printed in black & white

The author manages to present the framework in a great manner and passes his enthusiasm to the reader.

George Onofrei
In 2017, consumers downloaded 178 billion apps, and analysts predict growth to 258 billion by 2022. Mobile customers are demanding more—and better—apps, and it’s up to developers like you to write them! Flutter, a revolutionary new cross-platform software development kit created by Google, makes it easier than ever to write secure, high-performance native apps for iOS and Android. Flutter apps are blazingly fast because this open source solution compiles your Dart code to platform-specific programs with no JavaScript bridge! Flutter also supports hot reloading to update changes instantly. And thanks to its built-in widgets and rich motion APIs, Flutter’s apps are not just highly responsive, they’re stunning!
Table of Contents detailed table of contents

Part 1: Meet Flutter

1 Welcome

1.1 On Dart

1.2 Why Does Flutter Use Dart?

1.3 Who Uses Flutter?

1.3.1 Teams, Project Leads, and CTOs

1.3.2 Individual Developers

1.3.3 Code School Students and Recent CS Grads

1.3.4 Open Source Developers

1.3.5 People Who Value Speed

1.3.6 People Who Are Lazy

1.3.7 People Who Value Control

1.4 Who is This Book For?

1.5 Other Mobile Development Options

1.5.1 Native Development (iOS and Android)

1.5.2 Cross-Platform JavaScript Options

1.6 The Immediate Benefits of Flutter

1.6.1 No JavaScript Bridge

1.6.2 Compile Time

1.6.3 Write Once, Test Once, Deploy Everywhere

1.6.4 Code Sharing

1.6.5 Productivity and Collaboration

1.6.6 Code Maintenance

1.6.7 The Bottom Line: Is Flutter for You?

1.7 A Brief Intro into How Flutter Works

1.7.1 Everything is A Widget

1.7.2 Composing UI with Widgets

1.7.3 Widget Types

1.8 Flutter Rendering: Under the Hood

1.8.1 Compose the Widget Tree and Layout

1.8.2 Composite step

1.8.3 Paint to the screen

1.9 Final Note

1.10 Summary

2 A Brief Intro to Dart

2.1 Hello, Dart!

2.1.1 Anatomy of a Dart Program

2.2 Programming a Greeter: Hello, _!

2.2.1 Add more greetings

2.2.2 I/O and Dart Libraries

2.3 Common Programming Concepts In Dart

2.3.1 Intro to Dart’s Type System


2.3.3 Variables and Assignment

2.3.4 Operators

2.3.5 Null Aware Operators

2.4 Control Flow

2.4.1 if and else

2.4.2 switch and case

2.4.3 Loops

2.5 Functions

2.5.1 Anatomy of a Dart Function

2.5.2 Parameters

2.5.3 Default parameter values

2.5.4 Advanced Function Concepts

2.5.5 Lexical Scope

2.6 Object Oriented Programming (in Dart)

2.6.1 Classes

2.6.2 Constructors

2.6.3 Inheritance

2.6.4 Factories and Named Constructors

2.6.5 Enumerators

2.7 Summary

3 Meet Flutter

3.1 Intro to the counter app

3.1.1 Flutter project structure

3.1.2 Anatomy of a Flutter App

3.1.3 Everything is a Widget

3.1.4 The build method

3.1.5 new and const constructors in Flutter

3.1.6 Hot Reload

3.2 Widgets: The widget tree, widget types and the State object

3.2.1 Stateless Widget

3.2.2 Stateful Widget

3.2.3 setState

3.2.4 initState

3.3 BuildContext

3.4 Enhancing the Counter app with the most important widgets

3.4.1 Raised Button

3.5 Intro to Layout in Flutter

3.5.1 Row and Column

3.5.2 Layout Constraints in Flutter

3.5.3 RenderObject

3.5.4 RenderObject and Constraints

3.5.5 RenderBoxes and layout errors

3.5.6 Multi-child widgets

3.5.7 Icons

3.5.8 Images

3.5.9 Container Widget

3.6 The Element Tree

3.6.1 Exploring the Element Tree with an exmple

3.6.2 The Element Tree and State Objects

3.6.3 Widget Keys

3.7 Summary

Part 2: Weather App - UI and Animations

4 Flutter UI: Important Widgets, Theme, and Layout

4.1 Setting up and configuring a Flutter app

4.1.1 Configuration: pubspec and main.dart

4.1.2 SystemChrome

4.1.3 MaterialApp widget

4.2 Structural Widgets

4.2.1 Scaffold

4.2.2 AppBar and PreferredSizeWidget

4.3 Styling in Flutter and Theme

4.3.1 Theme

4.3.2 MediaQuery and the of method

4.3.3 ScreenAwareSize method

4.4 Common Layout and UI widgets

4.4.1 Stack

4.4.2 Table

4.4.3 TabBar

4.5 ListView and Builders

4.6 Summary

5 User Interaction: Forms and Gestures

5.1 User interaction and gestures

5.1.1 The GestureDetector widget

5.1.2 Dismissible

5.2 Flutter Forms

5.2.1 The Form widget

5.2.2 GlobalKey<FormState>

5.2.3 Using FormState

5.3 FormField widgets

5.3.1 FormField Properties

5.3.2 Form styling and labels

5.3.3 Form methods help manage form state

5.4 Summary

6 Pushing Pixels: Flutter Animations and using the Canvas

6.1 Introducing Flutter Animations

6.1.1 Tweens

6.1.2 Animation Curves

6.1.3 Ticker providers

6.1.4 AnimationController

6.1.5 AnimatedWidget

6.1.6 Implementing the AnimationController and Tween for the background

6.2 CustomPainter and the Canvas

6.2.1 Define the CustomPainter and Paint object

6.2.2 CustomPainter paint method

6.3 Animations Again: Staggered animations, TweenSequence, and built in animations

6.3.1 Creating a custom animation state class

6.3.2 Built in animation widgets: SlideTransition

6.3.3 TweenSequence

6.4 Reusable color transition custom widgets

6.5 Summary

Part 3: E-commerce App: State Management and Async Dart

7 Routing

8 State Management

9 Async Dart and StreamBuilders

Part 4: Beyond Flutter

10 Build a “real” app: Dependency injection and HTTP

11 Get the most out of Flutter: Performance, Tooling, and Testing


Appendix A: Installation and Tools

Installation: Dart2

Mac OS



Installation: Flutter SDK

Mac OS



Appendix B: Installation and Tools

Appendix C: Pub package manager

Appendix D: Flutter for Web Developers

Appendix E: Flutter for iOS Developers

Appendix F: Flutter for Android Developers

About the book

Flutter in Action teaches you to build awesome, full-featured mobile applications with Flutter. Author Eric Windmill walks with you every step of the way as you build apps that get you coding as you learn. With the engaging hands-on examples, you’ll create a basic user interface, learn about state management, and integrate a database with a Dart web app. You’ll also delve into widgets, styling with themes, animations, handling user input, and more. As a bonus, you’ll gain experience coding in Google’s instantly familiar Dart programming language, which has features sure to boost your productivity. Programmers familiar with any high-level language will feel right at home with Dart. If you want to build beautiful, fast, cross-platform mobile apps, you need this easy-to-follow tutorial! And with Eric Windmill’s informal, friendly style, learning Flutter is as much fun as writing the apps!

What's inside

  • Understanding the basic Flutter UI
  • Working with widgets
  • Building layouts in Flutter
  • State management
  • Handling user input
  • Integrating platform-specific functionality for iOS and Android
  • Sharing code between Flutter and the web
  • Built-in and custom animations
  • Testing and debugging

About the reader

For developers familiar with the basics of programming web applications. No experience with Dart or Flutter needed!

About the author

Eric Windmill is a professional Dart developer, a contributor to open-source Flutter projects, and the author of FlutterByExample.com. His work is featured on Flutter’s own showcase page, https://flutter.io/showcase.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $49.99 pBook + eBook + liveBook
MEAP eBook $39.99 pdf + ePub + kindle + liveBook

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks