Skip to content

Commit a91c9c0

Browse files
committed
Update firebase-auth-flutterfire-ui rebuild script
1 parent 7321c7b commit a91c9c0

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

firebase-auth-flutterfire-ui/codelab_rebuild.yaml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4913,7 +4913,7 @@ steps:
49134913
patch-u: |
49144914
--- b/firebase-auth-flutterfire-ui/complete/lib/auth_gate.dart
49154915
+++ a/firebase-auth-flutterfire-ui/complete/lib/auth_gate.dart
4916-
@@ -1,12 +1,57 @@
4916+
@@ -1,12 +1,56 @@
49174917
+import 'package:firebase_auth/firebase_auth.dart' hide EmailAuthProvider;
49184918
+import 'package:firebase_ui_auth/firebase_ui_auth.dart';
49194919
+import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
@@ -4949,10 +4949,9 @@ steps:
49494949
+ subtitleBuilder: (context, action) {
49504950
+ return Padding(
49514951
+ padding: const EdgeInsets.symmetric(vertical: 8.0),
4952-
+ child:
4953-
+ action == AuthAction.signIn
4954-
+ ? const Text('Welcome to FlutterFire, please sign in!')
4955-
+ : const Text('Welcome to Flutterfire, please sign up!'),
4952+
+ child: action == AuthAction.signIn
4953+
+ ? const Text('Welcome to FlutterFire, please sign in!')
4954+
+ : const Text('Welcome to Flutterfire, please sign up!'),
49564955
+ );
49574956
+ },
49584957
+ footerBuilder: (context, action) {
@@ -4982,7 +4981,7 @@ steps:
49824981
import 'package:flutter/material.dart';
49834982

49844983
class HomeScreen extends StatelessWidget {
4985-
@@ -6,12 +7,46 @@ class HomeScreen extends StatelessWidget {
4984+
@@ -6,12 +7,45 @@ class HomeScreen extends StatelessWidget {
49864985
@override
49874986
Widget build(BuildContext context) {
49884987
return Scaffold(
@@ -4995,25 +4994,24 @@ steps:
49954994
+ Navigator.push(
49964995
+ context,
49974996
+ MaterialPageRoute<ProfileScreen>(
4998-
+ builder:
4999-
+ (context) => ProfileScreen(
5000-
+ appBar: AppBar(title: const Text('User Profile')),
5001-
+ actions: [
5002-
+ SignedOutAction((context) {
5003-
+ Navigator.of(context).pop();
5004-
+ }),
5005-
+ ],
5006-
+ children: [
5007-
+ const Divider(),
5008-
+ Padding(
5009-
+ padding: const EdgeInsets.all(2),
5010-
+ child: AspectRatio(
5011-
+ aspectRatio: 1,
5012-
+ child: Image.asset('flutterfire_300x.png'),
5013-
+ ),
5014-
+ ),
5015-
+ ],
4997+
+ builder: (context) => ProfileScreen(
4998+
+ appBar: AppBar(title: const Text('User Profile')),
4999+
+ actions: [
5000+
+ SignedOutAction((context) {
5001+
+ Navigator.of(context).pop();
5002+
+ }),
5003+
+ ],
5004+
+ children: [
5005+
+ const Divider(),
5006+
+ Padding(
5007+
+ padding: const EdgeInsets.all(2),
5008+
+ child: AspectRatio(
5009+
+ aspectRatio: 1,
5010+
+ child: Image.asset('flutterfire_300x.png'),
5011+
+ ),
50165012
+ ),
5013+
+ ],
5014+
+ ),
50175015
+ ),
50185016
+ );
50195017
+ },

0 commit comments

Comments
 (0)