Foreword vii
Preface ix
1. Learning Dart Variables 1
2. Exploring Control Flow 11
3. Implementing Functions 21
4. Handling Lists and Maps 29
5. Getting Started with Object-Oriented Dart 39
6. Dart Test Cases 53
7. Introducing the Flutter Framework 65
8. Adding Assets 75
9. Working with Widgets 83
10. Developing User Interfaces 115
11. Organizing On-Screen Data 131
12. Flutter Page Navigation 151
13. Handling Data Assets 173
14. Testing the Flutter User Interface 191
15. Working with Firebase and Flutter 199
16. Introducing Cloud Services 231
17. Starting with Game Development 241
Appendix: Setting Up Your Environment 273
Index 281
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