Book description
Learn the essentials of working with Flutter and Dart to build full stack applications that meet the needs of a cloud-driven world. Together, the Flutter open source UI software development kit and the Dart programming language for client development provide a unified solution to building applications capable of targeting multiple platforms. Recipes in this cookbook show you how this potent combination provides an efficient approach to application development.
Typically used in frontend development, Flutter helps you develop cross-platform applications for Android, iOS, Linux, Mac, Windows, and the Google Fuchsia operating systems. The Dart SDK provides native access to third-party solutions, including APIs, databases, and authentication. When used in concert with Flutter, Dart allows you to compile source code ahead of time to native code.
This cookbook shows you how to:
- Write effective Dart code by using variables and data structures
- Build applications with Flutter by exploring widgets and data handling
- Understand cloud provider solutions and learn how to integrate them with Flutter
- Manage data through APIs using Google Cloud Serverless
- Work with Firebase solutions such as Authentication and the Cloud Firestore database
- Build web applications that also work with mobile and desktop platforms
Publisher resources
Table of contents
- Foreword
- Preface
-
1. Learning Dart Variables
- 1.1. Running a Dart Application
- 1.2. Working with Integer Values
- 1.3. Working with Double Values
- 1.4. Working with Boolean Values
- 1.5. Working with Strings
- 1.6. Printing Information to the Console
- 1.7. Adding a Constant Variable (Compile Time)
- 1.8. Adding a Constant Variable (Runtime)
- 1.9. Working with Null Variables
- 2. Exploring Control Flow
- 3. Implementing Functions
- 4. Handling Lists and Maps
- 5. Getting Started with Object-Oriented Dart
- 6. Dart Test Cases
- 7. Introducing the Flutter Framework
- 8. Adding Assets
-
9. Working with Widgets
- 9.1. Creating a Stateless Widget in Flutter
- 9.2. Creating a Stateful Widget in Flutter
- 9.3. Refactoring Flutter Widgets
- 9.4. Using the Scaffold Class
- 9.5. Adding an AppBar Header
- 9.6. Building with a Container
- 9.7. Using a Center Widget
- 9.8. Using a SizedBox
- 9.9. Using a Column
- 9.10. Using a Row
- 9.11. Using an Expanded Widget
- 10. Developing User Interfaces
- 11. Organizing On-Screen Data
- 12. Flutter Page Navigation
- 13. Handling Data Assets
- 14. Testing the Flutter User Interface
-
15. Working with Firebase and Flutter
- 15.1. Using the Firebase Platform with Flutter
- 15.2. Setting Up a Firebase Project
- 15.3. Initializing the Firebase SDK for Local Development
- 15.4. Configuring Firebase Emulators
- 15.5. Adding flutterfire_cli to a Development Environment
- 15.6. Integrating a Firestore Database
- 15.7. Writing Data to a Firestore Database
- 15.8. Reading Data from Cloud Firestore
- 15.9. Adding Firebase Authentication to Flutter
- 15.10. Using Flutter Web with Firebase Hosting
- 16. Introducing Cloud Services
-
17. Starting with Game Development
- 17.1. Adding the Flame Package to Flutter
- 17.2. Creating a Flame Boilerplate
- 17.3. Adding a Sprite
- 17.4. Adding Manual Horizontal Movement to a Sprite
- 17.5. Adding Automated Vertical Movement to a Sprite
- 17.6. Adding Collision Detection
- 17.7. Adding Text Rendering
- 17.8. Adding Graphic Primitives
- 17.9. Adding Sound Effects
- Appendix. Setting Up Your Environment
- Index
- About the Author
Product information
- Title: Flutter and Dart Cookbook
- Author(s):
- Release date: December 2022
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098119515
You might also like
book
Flutter Cookbook
Discover how to build, scale, and debug native iOS and Android applications from a single codebase …
book
Flutter Cookbook - Second Edition
Write, test and publish your web, desktop, and embedded apps with this most up-to-date book on …
video
Learn Flutter and Dart to Build iOS and Android Apps (2023)
What makes Flutter the best framework to build mobile apps? With Flutter, you can build mobile …
video
Learn Flutter and Dart to Build iOS and Android Apps - Second Edition
This Flutter course is an excellent opportunity to discover the power of Flutter and Dart for …