Flutter Cookbook - Third Edition: Build modern cross-platform apps with Flutter 3, Dart 3, and practical AI integrations
暫譯: Flutter Cookbook(第三版):使用 Flutter 3、Dart 3 與實用 AI 整合技術打造現代跨平台應用程式

Alessandria, Simone, Yovo, Martino, Anwar, Abu

  • 出版商: Packt Publishing
  • 出版日期: 2026-09-30
  • 售價: $1,740
  • 貴賓價: 9.5 折 $1,653
  • 語言: 英文
  • 頁數: 740
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1806385430
  • ISBN-13: 9781806385430
  • 相關分類: Flutter、Large language model
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build, test, and deploy production-ready Flutter apps for mobile, web, and desktop, while adding AI features using ML Kit, Gemini, and agentic workflows

Key Features:

- Integrate ML Kit and Gemini APIs to build AI-powered features into your Flutter apps

- Cover state management, architecture, testing, and debugging for production-ready apps

- Build and deploy cross-platform apps for mobile, web, and desktop from one codebase

Book Description:

"Anyone interested in developing Flutter applications for Android or iOS should have a copy of this book on their desk." - Amazon 5-star review

Lauded as the 'Flutter bible' for mobile app developers, this recipe-based guide teaches best practices for building robust, production-ready applications and solving cross-platform development challenges.

From setting up your development environment to error handling, debugging, and testing, Flutter Cookbook covers both the how-tos and the principles behind them. You'll tackle UI/UX design, API integration, animations, application state management, routing, web services, and local data persistence.

A dedicated section covers Firebase and its machine learning capabilities, including building AI-powered features with ML Kit and the Gemini APIs. You'll go beyond simple AI interactions to build agentic apps with agent loops, plan-act-reflect workflows, multi-agent routing, tool use with the Model Context Protocol (MCP), and runtime-generated UIs.

You'll also learn to build apps for iOS and Android from a single codebase, extend them to web and desktop platforms including Windows, macOS, and Linux, and deploy cross-platform apps to the App Store and Google Play. By the end, you'll be equipped to build, test, and deliver fully functional Flutter applications.

What You Will Learn:

- Build apps for iOS, Android, web, and desktop

- Add AI-powered features using ML Kit and Gemini APIs

- Build agentic apps with agent loops, multi-agent routing, and MCP tool use

- Manage application state with Provider and Riverpod

- Handle asynchronous programming with Future and Stream

- Integrate Firebase for authentication, storage, and ML capabilities

- Structure apps using layered architecture patterns

- Write unit, widget, and integration tests for Flutter apps

- Deploy to the App Store and Google Play, and deliver over-the-air updates without a store release

Who this book is for:

This book is for developers who want to build production-ready Flutter applications and need solutions to real cross-platform challenges. Beginners with coding experience in JavaScript, Swift, Kotlin, Java, Objective-C, or C# will find clear, recipe-driven guidance from first principles. Experienced mobile and web developers will benefit from architecture patterns, testing strategies, and AI integration techniques that reflect current production practices. No prior Flutter or Dart experience is required.

Table of Contents

- Getting Started with Flutter

- Creating Your First Flutter App

- Exploring Dart - A Language You Already Know

- Using Widgets

- Mastering Layout and Taming the Widget Tree

- Introducing Asynchronous Programming: Future and Stream

- Adding Navigation to Your App

- Persisting Data Locally

- Working with REST APIs

- Mastering State Management

- Using Flutter Packages

- Adding Animations to Your App

- Using Firebase

- Adding Machine Learning to Your Apps with ML Kit

- Integrating Gemini Into Your App

- Creating an Agentic App

- Flutter Web and Desktop

- Leveraging Build Configuration and Version Management in Flutter

- Testing and Quality Assurance in Flutter

- Distributing Your Mobile App

商品描述(中文翻譯)

打造、測試並部署可用於正式環境的 Flutter 行動、Web 與桌面應用程式,同時運用 ML Kit、Gemini 和代理式工作流程加入 AI 功能

主要特色:

- 整合 ML Kit 與 Gemini API,為 Flutter 應用程式打造 AI 驅動功能
- 涵蓋狀態管理、架構、測試與除錯,協助打造可用於正式環境的應用程式
- 使用單一程式碼庫,建置並部署跨平台的行動、Web 與桌面應用程式

本書簡介:

「任何有興趣為 Android 或 iOS 開發 Flutter 應用程式的人,桌上都應該放一本本書。」——Amazon 五星評論

本書被行動應用程式開發者譽為「Flutter 聖經」,透過以配方為基礎的實作指南,教導建置健壯、可用於正式環境的應用程式之最佳實務,並協助解決跨平台開發的各種挑戰。

從設定開發環境,到錯誤處理、除錯與測試,《Flutter Cookbook》不僅說明如何完成各項工作,也解釋背後的原理。你將學習 UI/UX 設計、API 整合、動畫、應用程式狀態管理、路由、Web 服務,以及本機資料持久化。

本書也設有專章介紹 Firebase 及其機器學習功能,包括如何使用 ML Kit 與 Gemini API 建置 AI 驅動功能。你將超越簡單的 AI 互動,進一步建置代理式應用程式,涵蓋代理迴圈、規劃-執行-反思工作流程、多代理路由、透過 Model Context Protocol(MCP)使用工具,以及執行階段產生的 UI。

你還將學習如何使用單一程式碼庫建置 iOS 與 Android 應用程式,將其延伸至 Windows、macOS 和 Linux 等 Web 與桌面平台,並將跨平台應用程式部署至 App Store 與 Google Play。完成本書後,你將具備建置、測試與交付完整 Flutter 應用程式所需的能力。

你將學到:

- 為 iOS、Android、Web 與桌面平台建置應用程式
- 使用 ML Kit 與 Gemini API 加入 AI 驅動功能
- 使用代理迴圈、多代理路由與 MCP 工具建置代理式應用程式
- 使用 Provider 與 Riverpod 管理應用程式狀態
- 使用 Future 與 Stream 處理非同步程式設計
- 整合 Firebase,實作驗證、儲存與機器學習功能
- 使用分層架構模式組織應用程式
- 為 Flutter 應用程式撰寫單元測試、Widget 測試與整合測試
- 將應用程式部署至 App Store 與 Google Play,並在無需透過商店發布新版的情況下提供無線更新

本書適合讀者:

本書適合希望建置可用於正式環境的 Flutter 應用程式,並需要解決實際跨平台開發挑戰的開發者。具備 JavaScript、Swift、Kotlin、Java、Objective-C 或 C# 程式設計經驗的初學者,將能透過清晰、以配方為基礎的內容,從基本原理開始學習。具備經驗的行動與 Web 開發者,則能從符合目前正式環境實務的架構模式、測試策略與 AI 整合技術中受益。本書不要求讀者事先具備 Flutter 或 Dart 經驗。

目錄

- Flutter 入門
- 建立第一個 Flutter 應用程式
- 探索 Dart——一門你已經熟悉的語言
- 使用 Widget
- 精通版面配置,駕馭 Widget 樹
- 非同步程式設計入門:Future 與 Stream
- 在應用程式中加入導覽功能
- 在本機保存資料
- 使用 REST API
- 精通狀態管理
- 使用 Flutter 套件
- 在應用程式中加入動畫
- 使用 Firebase
- 使用 ML Kit 為應用程式加入機器學習功能
- 將 Gemini 整合至應用程式
- 建立代理式應用程式
- Flutter Web 與桌面平台
- 在 Flutter 中善用建置設定與版本管理
- Flutter 測試與品質保證
- 發布行動應用程式