Welcome to Flutter! This chapter explains what Flutter is, why you should use it and how to get your development environment…
Flutter & Dart
Flutter Apprentice
Feb 21 2024 · Book
Build for both iOS and Android with Flutter! Flutter is a new and exciting software development toolkit that lets you target multiple platforms at once, so you can build apps for iOS, Android and even web and desktop, all from a single codebase. Similar to modern web technologies, Flutter uses…
Flutter & Dart
Chapter in Flutter Apprentice
Hello, Flutter
Feb 21 2024 · Chapter
…this chapter, you’ll build your first Flutter app from scratch and get the hang of fundamentals…
Flutter & Dart
Chapter in Flutter Apprentice
Platform-Specific App Assets
Feb 21 2024 · Chapter
…built Flutter apps using the Dart language and the various Flutter idioms. You then built and deployed those apps to iOS and Android devices without having to do anything special. You may have even tried running your apps in Chrome or as a desktop app. It’s almost magical. Sometimes…
Flutter & Dart
Chapter in Flutter Apprentice
Understanding Widgets
Feb 21 2024 · Chapter
…have heard that everything in Flutter is a widget. While that might not be absolutely true, most of the time when you’re building apps, you only see the top layer: widgets. In this chapter, you’ll dive into widget theory. You’ll explore: Widgets Widget rendering Flutter Inspector Types…
Flutter & Dart
Chapter in Flutter Apprentice
Introduction
Feb 21 2024 · Chapter
Welcome to Flutter Apprentice! Flutter is an incredible user interface (UI) toolkit that lets you build apps for iOS and Android — and even the web and desktop platforms like macOS, Windows and Linux — all from a single codebase. Flutter has all the benefits of other cross-platform tools, especially because…
Flutter & Dart
Chapter in Flutter Apprentice
Widget Testing
Feb 21 2024 · Chapter
Widget testing is about making your Flutter widgets dance to your tune. It’s essential to ensure your UI components not only look good but also work as you intended. In this chapter, you’ll: Learn the concept of widget testing. Load mock data into the widget tests. Ensure that…
Flutter & Dart
Chapter in Flutter Apprentice
Firebase Cloud Firestore
Feb 21 2024 · Chapter
Cloud Firestore to build your own instant messaging app. Getting Started First, open the starter project from this chapter’s project materials and run flutter pub get. Next, build and run your project. You’ll see the Yummy app’s Chat tab. Right now, your app doesn’t do much…
Flutter & Dart
Chapter in Flutter Apprentice
Deep Links & Web URLs
Feb 21 2024 · Chapter
Learn how to build a Flutter app that handles deep links for both mobile and web apps…
Flutter & Dart
Chapter in Flutter Apprentice
Routes & Navigation
Feb 21 2024 · Chapter
…background, you might be familiar with UINavigationController from UIKit, or NavigationStack from SwiftUI. In Android, you use Jetpack Navigation to manage various fragments. In Flutter, you use a Navigator widget to manage your screens or pages. Think of screens and pages as routes. Note: This chapter uses these terms interchangeably…
Flutter & Dart
Chapter in Flutter Apprentice
What You Need
Feb 21 2024 · Chapter
…book, you’ll need the following: Xcode 15.0.1 or later. Xcode is iOS’s main development tool, so you need it to build your Flutter app for iOS. You can download the latest version of Xcode from Apple’s developer site here: apple.co/2asi58y or from the Mac App Store…
Flutter & Dart
Chapter in Flutter Apprentice
Introduction to Testing
Feb 21 2024 · Chapter
This chapter will introduce you to testing. You'll learn the different types of tests supported in Flutter and you'll start writing unit tests for the business logic of your…
Flutter & Dart
Chapter in Flutter Apprentice
Handling Shared Preferences
Feb 21 2024 · Chapter
…recipes and find one you like. You’re in a hurry and want to bookmark it to check it later. Can you build a Flutter app that does that? You sure can! Read on to find out how. In this chapter, your goal is to learn…
Flutter & Dart
Chapter in Flutter Apprentice
Saving Data Locally
Feb 21 2024 · Chapter
…package. You’ll then swap the memory repository for the new database repository. Adding Libraries Open pubspec.yaml and add the following packages after the flutter_riverpod package: synchronized: ^3.1.0 sqlbrite: ^2.6.0 sqlite3_flutter_libs: ^0.5.18 web_ffi: ^0.7.2 sqlite3: ^2.1.0 These packages provide the following: synchronized: Helps implement lock mechanisms…
Flutter & Dart
Chapter in Flutter Apprentice
Managing State
Feb 21 2024 · Chapter
…start fresh by opening this chapter’s starter project. If you choose to do this, remember to click the Get dependencies button or execute flutter pub get from Terminal. You’ll also need to add your API Key to lib/network/spoonacular_service.dart. By the end of the chapter, you’ll know…
Flutter & Dart
Chapter in Flutter Apprentice
Networking in Flutter
Feb 21 2024 · Chapter
…start fresh by opening this chapter’s starter project. If you choose to do this, remember to click the pub get button or execute flutter pub get from Terminal. By the end of this chapter, you’ll know how to: Sign up for a recipe API service. Trigger a search…
Flutter & Dart
Chapter in Flutter Apprentice
Advanced Scrollable Widgets
Feb 21 2024 · Chapter
Explore advanced Flutter widgets: tap into Slivers for intricate scroll designs, employ GridView for adaptive layouts, and unveil Bottom Sheets for an enhanced interactive interface…
Flutter & Dart
Chapter in Flutter Apprentice
Basic Widgets
Feb 21 2024 · Chapter
Dive into the world of Flutter, where everything is a widget! This chapter unveils three fundamental widget categories essential for: Structure and navigation Displaying information Positioning widgets By the end of the chapter, you’ll construct a social food app called Yummy. You’ll use various widgets to create three…
Flutter & Dart
Chapter in Flutter Apprentice
Build & Release an Android App
Feb 21 2024 · Chapter
…finally ready to prepare your Flutter app for the Google Play Store. This chapter covers the release and deployment process…
Flutter & Dart
Chapter in Flutter Apprentice
Serialization With JSON
Feb 21 2024 · Chapter
…long string and try to parse out the data, it’s much easier to use a package that already knows how to do that. Flutter has a built-in package for decoding JSON, but in this chapter, you’ll use the json_serializable and json_annotation packages to help make…