Introduction |
|
xxi | |
|
PART I THE FOUNDATIONS OF FLUTTER PROGRAMMING |
|
|
|
Chapter 1 Introducing Flutter And Getting Started |
|
|
3 | (22) |
|
|
4 | (1) |
|
Defining Widgets and Elements |
|
|
5 | (1) |
|
Understanding Widget Lifecycle Events |
|
|
5 | (3) |
|
The Stateless Widget Lifecycle |
|
|
6 | (1) |
|
The Stateful Widget Lifecycle |
|
|
6 | (2) |
|
Understanding the Widget Tree and the Element Tree |
|
|
8 | (5) |
|
Stateless Widget and Element Trees |
|
|
9 | (1) |
|
Stateful Widget and Element Trees |
|
|
10 | (3) |
|
Installing the Flutter SDK |
|
|
13 | (7) |
|
|
13 | (1) |
|
|
13 | (1) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
14 | (1) |
|
Android Setup: Install Android Studio |
|
|
14 | (1) |
|
Set Up the Android Emulator |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (1) |
|
|
16 | (1) |
|
Set Up the Android Emulator |
|
|
17 | (1) |
|
|
17 | (1) |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
Set Up the Android Emulator |
|
|
19 | (1) |
|
Configuring the Android Studio Editor |
|
|
20 | (1) |
|
|
20 | (5) |
|
Chapter 2 Creating A Hello World APP |
|
|
25 | (18) |
|
|
25 | (5) |
|
|
30 | (3) |
|
Using Themes to Style Your App |
|
|
33 | (4) |
|
|
33 | (2) |
|
Using a Theme for Part of an App |
|
|
35 | (2) |
|
Understanding Stateless and Stateful Widgets |
|
|
37 | (1) |
|
|
38 | (3) |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
41 | (2) |
|
Chapter 3 Learning Dart Basics |
|
|
43 | (22) |
|
|
43 | (1) |
|
|
44 | (1) |
|
Running the main() Entry Point |
|
|
45 | (1) |
|
|
45 | (1) |
|
|
46 | (3) |
|
|
47 | (1) |
|
|
47 | (1) |
|
|
47 | (1) |
|
|
47 | (1) |
|
|
48 | (1) |
|
|
48 | (1) |
|
|
49 | (2) |
|
|
51 | (4) |
|
|
51 | (1) |
|
|
52 | (1) |
|
|
52 | (1) |
|
|
53 | (1) |
|
|
54 | (1) |
|
|
54 | (1) |
|
|
55 | (1) |
|
|
55 | (2) |
|
|
57 | (1) |
|
|
57 | (4) |
|
|
60 | (1) |
|
|
60 | (1) |
|
Implementing Asynchronous Programming |
|
|
61 | (1) |
|
|
62 | (3) |
|
Chapter 4 Creating A Starter Project Template |
|
|
65 | (12) |
|
Creating and Organizing Folders and Files |
|
|
65 | (4) |
|
|
69 | (5) |
|
|
74 | (3) |
|
Chapter 5 Understanding The Widget Tree |
|
|
77 | (26) |
|
|
77 | (2) |
|
Building the Full Widget Tree |
|
|
79 | (6) |
|
Building a Shallow Widget Tree |
|
|
85 | (14) |
|
Refactoring with a Constant |
|
|
86 | (1) |
|
Refactoring with a Method |
|
|
86 | (5) |
|
Refactoring with a Widget Class |
|
|
91 | (8) |
|
|
99 | (4) |
|
PART II INTERMEDIATE FLUTTER: FLESHING OUT AN APP |
|
|
|
Chapter 6 Using Common Widgets |
|
|
103 | (48) |
|
|
103 | (27) |
|
|
107 | (1) |
|
|
108 | (4) |
|
|
112 | (1) |
|
|
112 | (2) |
|
|
114 | (1) |
|
|
115 | (1) |
|
|
115 | (4) |
|
|
119 | (1) |
|
|
119 | (2) |
|
|
121 | (1) |
|
|
121 | (1) |
|
|
122 | (1) |
|
|
123 | (3) |
|
|
126 | (4) |
|
|
130 | (5) |
|
|
130 | (1) |
|
|
131 | (1) |
|
|
132 | (3) |
|
|
135 | (4) |
|
Using the Form Widget to Validate Text Fields |
|
|
139 | (4) |
|
|
143 | (6) |
|
|
149 | (2) |
|
Chapter 7 Adding Animation To An APP |
|
|
151 | (26) |
|
|
152 | (3) |
|
|
155 | (5) |
|
|
160 | (4) |
|
Using AnimationController |
|
|
164 | (11) |
|
Using Staggered Animations |
|
|
170 | (5) |
|
|
175 | (2) |
|
Chapter 8 Creating An App's Navigation |
|
|
177 | (44) |
|
|
178 | (10) |
|
Using the Named Navigator Route |
|
|
188 | (1) |
|
|
188 | (5) |
|
Using the BottomNavigationBar |
|
|
193 | (6) |
|
|
199 | (4) |
|
Using the TabBar and TabBarView |
|
|
203 | (4) |
|
Using the Drawer and ListView |
|
|
207 | (10) |
|
|
217 | (4) |
|
Chapter 9 Creating Scrolling Lists And Effects |
|
|
221 | (32) |
|
|
222 | (1) |
|
Using the ListView and ListTile |
|
|
223 | (7) |
|
|
230 | (7) |
|
|
230 | (2) |
|
Using the GridView.extent |
|
|
232 | (1) |
|
Using the GridView.builder |
|
|
233 | (4) |
|
|
237 | (6) |
|
Customizing the CustomScrollView with Slivers |
|
|
243 | (7) |
|
|
250 | (3) |
|
Chapter 10 Building Layouts |
|
|
253 | (14) |
|
A High-Level View of the Layout |
|
|
253 | (4) |
|
|
256 | (1) |
|
|
256 | (1) |
|
|
257 | (1) |
|
|
257 | (1) |
|
|
257 | (8) |
|
|
265 | (2) |
|
Chapter 11 Applying Interactivity |
|
|
267 | (40) |
|
Setting Up GestureDetector: The Basics |
|
|
267 | (8) |
|
Implementing the Draggable and Dragtarget Widgets |
|
|
275 | (3) |
|
Using the GestureDetector for Moving and Scaling |
|
|
278 | (11) |
|
Using the InkWell and InkResponse Gestures |
|
|
289 | (7) |
|
Using the Dismissible Widget |
|
|
296 | (7) |
|
|
303 | (4) |
|
Chapter 12 Writing Platform-Native Code |
|
|
307 | (20) |
|
Understanding Platform Channels |
|
|
307 | (2) |
|
Implementing the Client Platform Channel App |
|
|
309 | (4) |
|
Implementing the iOS Host Platform Channel |
|
|
313 | (5) |
|
Implementing the Android Host Platform Channel |
|
|
318 | (4) |
|
|
322 | (5) |
|
PART III CREATING PRODUCTION-READY APPS |
|
|
|
Chapter 13 Saving Data With Local Persistence |
|
|
327 | (48) |
|
Understanding the JSON Format |
|
|
328 | (2) |
|
Using Database Classes to Write, Read, and Serialize JSON |
|
|
330 | (1) |
|
|
331 | (1) |
|
|
332 | (1) |
|
Retrieving Data with the FutureBuilder |
|
|
333 | (2) |
|
|
335 | (36) |
|
Adding the Journal Database Classes |
|
|
339 | (5) |
|
Adding the Journal Entry Page |
|
|
344 | (15) |
|
Finishing the Journal Home Page |
|
|
359 | (12) |
|
|
371 | (4) |
|
Chapter 14 Adding The Firebase And Firestore Backend |
|
|
375 | (36) |
|
What Are Firebase and Cloud Firestore? |
|
|
376 | (7) |
|
Structuring and Data Modeling Cloud Firestore |
|
|
377 | (3) |
|
Viewing Firebase Authentication Capabilities |
|
|
380 | (1) |
|
Viewing Cloud Firestore Security Rules |
|
|
381 | (2) |
|
Configuring the Firebase Project |
|
|
383 | (8) |
|
Adding a Cloud Firestore Database and Implementing Security |
|
|
391 | (4) |
|
Building the Client Journal App |
|
|
395 | (14) |
|
Adding Authentication and Cloud Firestore Packages to the Client App |
|
|
395 | (8) |
|
Adding Basic Layout to the Client App |
|
|
403 | (3) |
|
Adding Classes to the Client App |
|
|
406 | (3) |
|
|
409 | (2) |
|
Chapter 15 Adding State Management To The Firestore Client APP |
|
|
411 | (42) |
|
Implementing State Management |
|
|
412 | (9) |
|
Implementing an Abstract Class |
|
|
414 | (1) |
|
Implementing the InheritedWidget |
|
|
415 | (1) |
|
Implementing the Model Class |
|
|
416 | (1) |
|
Implementing the Service Class |
|
|
417 | (1) |
|
Implementing the BLoC Pattern |
|
|
417 | (2) |
|
Implementing StreamController, Streams, Sinks, and StreamBuilder |
|
|
419 | (2) |
|
Building State Management |
|
|
421 | (28) |
|
Adding the Journal Model Class |
|
|
422 | (2) |
|
Adding the Service Classes |
|
|
424 | (6) |
|
Adding the Validators Class |
|
|
430 | (2) |
|
|
432 | (1) |
|
Adding the AuthenticationBloc |
|
|
432 | (3) |
|
Adding the AuthenticationBlocProvider |
|
|
435 | (1) |
|
|
436 | (5) |
|
|
441 | (2) |
|
Adding the HomeBlocProvider |
|
|
443 | (1) |
|
Adding the JournalEditBloc |
|
|
444 | (3) |
|
Adding the JournalEditBlocProvider |
|
|
447 | (2) |
|
|
449 | (4) |
|
Chapter 16 Adding Blocs To Firestore Client APP Pages |
|
|
453 | (36) |
|
|
454 | (6) |
|
|
460 | (5) |
|
|
465 | (7) |
|
Adding the Edit Journal Page |
|
|
472 | (12) |
|
|
484 | (5) |
Index |
|
489 | |