@@ -318,7 +318,7 @@ Flutter on macOS builds fully sandboxed apps. As this app integrates with the
318318network to communicate with the Firebase servers, you need to configure your app
319319with network client privileges.
320320
321- #### [ macos/Runner/DebugProfile.entitlements] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_04/macos/Runner/DebugProfile.entitlements )
321+ #### [ macos/Runner/DebugProfile.entitlements] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_04/macos/Runner/DebugProfile.entitlements )
322322
323323``` xml
324324<?xml version =" 1.0" encoding =" UTF-8" ?>
@@ -338,7 +338,7 @@ with network client privileges.
338338</plist >
339339```
340340
341- #### [ macos/Runner/Release.entitlements] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_04/macos/Runner/Release.entitlements )
341+ #### [ macos/Runner/Release.entitlements] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_04/macos/Runner/Release.entitlements )
342342
343343``` xml
344344<?xml version =" 1.0" encoding =" UTF-8" ?>
@@ -377,7 +377,7 @@ widgets:
377377
3783781 . Create a new file named ` app_state.dart ` with the following content:
379379
380- #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_05/lib/app_state.dart#L1 )
380+ #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_05/lib/app_state.dart#L1 )
381381
382382``` dart
383383import 'package:firebase_auth/firebase_auth.dart'
@@ -432,7 +432,7 @@ package, which is a great way to quickly bootstrap login screens in your apps.
432432
4334331 . Modify the imports at the top of the ` lib/main.dart ` file:
434434
435- #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_05/lib/main.dart#L1 )
435+ #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_05/lib/main.dart#L1 )
436436
437437``` dart
438438import 'package:firebase_ui_auth/firebase_ui_auth.dart'; // new
@@ -447,7 +447,7 @@ import 'home_page.dart';
447447
4484482 . Connect the app state with the app initialization and then add the authentication flow to ` HomePage ` :
449449
450- #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_05/lib/main.dart#L14 )
450+ #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_05/lib/main.dart#L14 )
451451
452452``` dart
453453void main() {
@@ -471,7 +471,7 @@ to redisplay dependent widgets.
4714713 . Update your app to handle navigation to different screens that ` FirebaseUI `
472472 provides for you, by creating a ` GoRouter ` configuration:
473473
474- #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_05/lib/main.dart#L23 )
474+ #### [ lib/main.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_05/lib/main.dart#L23 )
475475
476476``` dart
477477// Add GoRouter configuration outside the App class
@@ -584,7 +584,7 @@ different screen, such as profile.
5845844 . In the ` HomePage ` class's build method, integrate the app state with the
585585 ` AuthFunc ` widget:
586586
587- #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_05/lib/home_page.dart#L14 )
587+ #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_05/lib/home_page.dart#L14 )
588588
589589``` dart
590590import 'package:firebase_auth/firebase_auth.dart' // new
@@ -699,7 +699,7 @@ that connects these elements with the database.
6996991 . Create a new file named ` guest_book.dart ` , add a ` GuestBook ` stateful widget
700700 to construct the UI elements of a message field and a send button:
701701
702- #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_06/lib/guest_book.dart )
702+ #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_06/lib/guest_book.dart )
703703
704704``` dart
705705import 'dart:async';
@@ -820,7 +820,7 @@ auto-generated unique ID that Authentication gives for all logged-in users.
820820- In the ` lib/app_state.dart ` file, add the ` addMessageToGuestBook ` method.
821821 You connect this capability with the user interface in the next step.
822822
823- #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_06/lib/app_state.dart#L41 )
823+ #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_06/lib/app_state.dart#L41 )
824824
825825``` dart
826826import 'package:cloud_firestore/cloud_firestore.dart'; // new
@@ -864,7 +864,7 @@ is connect the two.
864864- In the ` lib/home_page.dart ` file, make the following change to the
865865 ` HomePage ` widget:
866866
867- #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_06/lib/home_page.dart#L15 )
867+ #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_06/lib/home_page.dart#L15 )
868868
869869``` dart
870870import 'package:firebase_auth/firebase_auth.dart'
@@ -972,7 +972,7 @@ state that listens for newly added messages from the app.
9729721 . Create a new file ` guest_book_message.dart ` , add the following class to
973973 expose a structured view of the data that you store in Firestore.
974974
975- #### [ lib/guest_book_message.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/guest_book_message.dart )
975+ #### [ lib/guest_book_message.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/guest_book_message.dart )
976976
977977``` dart
978978class GuestBookMessage {
@@ -985,7 +985,7 @@ class GuestBookMessage {
985985
9869862 . In the ` lib/app_state.dart ` file, add the following imports:
987987
988- #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L1 )
988+ #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L1 )
989989
990990``` dart
991991import 'dart:async'; // new
@@ -1003,7 +1003,7 @@ import 'guest_book_message.dart'; // new
10031003
100410043 . In section of ` ApplicationState ` where you define state and getters, add the following lines:
10051005
1006- #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L22 )
1006+ #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L22 )
10071007
10081008``` dart
10091009 bool _loggedIn = false;
@@ -1018,7 +1018,7 @@ import 'guest_book_message.dart'; // new
10181018
101910194 . In the initialization section of ` ApplicationState ` , add the following lines to subscribe to a query over the document collection when a user logs in and unsubscribe when they log out:
10201020
1021- #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L29 )
1021+ #### [ lib/app_state.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/app_state.dart#L29 )
10221022
10231023``` dart
10241024 Future<void> init() async {
@@ -1072,7 +1072,7 @@ import 'guest_book_message.dart';
10721072
107310736 . In the ` GuestBook ` widget, add a list of messages as part of the configuration to connect this changing state to the user interface:
10741074
1075- #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L12 )
1075+ #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L12 )
10761076
10771077``` dart
10781078class GuestBook extends StatefulWidget {
@@ -1093,7 +1093,7 @@ class GuestBook extends StatefulWidget {
10931093
109410947 . In ` _GuestBookState ` , modify the ` build ` method as follows to expose this configuration:
10951095
1096- #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L26 )
1096+ #### [ lib/guest_book.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/guest_book.dart#L26 )
10971097
10981098``` dart
10991099class _GuestBookState extends State<GuestBook> {
@@ -1168,7 +1168,7 @@ generate a new `Paragraph` for each message in the list of messages.
116811688 . Update the body of ` HomePage ` to correctly construct ` GuestBook ` with the
11691169 new ` messages ` parameter:
11701170
1171- #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_07/lib/home_page.dart#L48 )
1171+ #### [ lib/home_page.dart] ( https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_07/lib/home_page.dart#L48 )
11721172
11731173``` dart
11741174Consumer<ApplicationState>(
@@ -1314,7 +1314,7 @@ of how many people are attending.
13141314 section of the ` ApplicationState` so that the UI code can interact with this
13151315 state:
13161316
1317- #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L37)
1317+ #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L37)
13181318
13191319` ` ` dart
13201320int _attendees = 0 ;
@@ -1337,7 +1337,7 @@ set attending(Attending attending) {
13371337
133813382. Update the ` ApplicationState` 's ` init ()` method as follows:
13391339
1340- #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L80)
1340+ #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L80)
13411341
13421342` ` ` dart
13431343 Future< void > init () async {
@@ -1415,7 +1415,7 @@ whether the user is attending.
14151415
141614163. Add the following enumeration at the top of the ` lib/ app_state .dart ` file.
14171417
1418- #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L5)
1418+ #### [lib/app_state.dart](https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_09/lib/app_state.dart#L5)
14191419
14201420` ` ` dart
14211421enum Attending { yes, no, unknown }
@@ -1424,7 +1424,7 @@ enum Attending { yes, no, unknown }
142414244. Create a new file ` yes_no_selection .dart ` , define a new widget that acts
14251425 like radio buttons:
14261426
1427- #### [lib/yes_no_selection.dart](https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_09/lib/yes_no_selection.dart)
1427+ #### [lib/yes_no_selection.dart](https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_09/lib/yes_no_selection.dart)
14281428
14291429` ` ` dart
14301430import ' package:flutter/material.dart' ;
@@ -1506,7 +1506,7 @@ rendering.
15061506 enable a logged-in user to nominate whether they're attending, and display
15071507 the number of attendees for the event:
15081508
1509- #### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/master /firebase-get-to-know-flutter/step_09/lib/home_page.dart#L56)
1509+ #### [lib/home_page.dart](https://github.com/flutter/codelabs/blob/main /firebase-get-to-know-flutter/step_09/lib/home_page.dart#L56)
15101510
15111511` ` ` dart
15121512Consumer< ApplicationState> (
0 commit comments