Skip to content

Commit 53c7b04

Browse files
Update firebase-auth-flutterfire-ui (#2330)
## Pre-launch Checklist - [x] I read the [Effective Dart: Style] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Effective Dart: Style]: https://dart.dev/guides/language/effective-dart/style [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
1 parent 853633d commit 53c7b04

File tree

1,251 files changed

+39203
-817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,251 files changed

+39203
-817
lines changed

firebase-auth-flutterfire-ui/codelab_rebuild.yaml

Lines changed: 683 additions & 497 deletions
Large diffs are not rendered by default.

firebase-auth-flutterfire-ui/complete/.firebaserc

Lines changed: 0 additions & 5 deletions
This file was deleted.

firebase-auth-flutterfire-ui/complete/android/app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ plugins {
66
}
77

88
android {
9-
namespace = "com.example.complete"
9+
namespace = "com.example.firebase_auth_flutterfire_ui"
1010
compileSdk = flutter.compileSdkVersion
11-
ndkVersion = flutter.ndkVersion
11+
ndkVersion = "27.0.12077973"
1212

1313
compileOptions {
1414
sourceCompatibility = JavaVersion.VERSION_11
@@ -21,10 +21,10 @@ android {
2121

2222
defaultConfig {
2323
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24-
applicationId = "com.example.complete"
24+
applicationId = "com.example.firebase_auth_flutterfire_ui"
2525
// You can update the following values to match your application needs.
2626
// For more information, see: https://flutter.dev/to/review-gradle-config.
27-
minSdk = flutter.minSdkVersion
27+
minSdk = 23
2828
targetSdk = flutter.targetSdkVersion
2929
versionCode = flutter.versionCode
3030
versionName = flutter.versionName

firebase-auth-flutterfire-ui/complete/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="complete"
3+
android:label="firebase_auth_flutterfire_ui"
44
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity

firebase-auth-flutterfire-ui/complete/android/app/src/main/kotlin/com/example/complete/MainActivity.kt renamed to firebase-auth-flutterfire-ui/complete/android/app/src/main/kotlin/com/example/firebase_auth_flutterfire_ui/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.complete
1+
package com.example.firebase_auth_flutterfire_ui
22

33
import io.flutter.embedding.android.FlutterActivity
44

firebase-auth-flutterfire-ui/complete/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 77 additions & 77 deletions
Large diffs are not rendered by default.

firebase-auth-flutterfire-ui/complete/ios/Runner/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>$(DEVELOPMENT_LANGUAGE)</string>
77
<key>CFBundleDisplayName</key>
8-
<string>Complete</string>
8+
<string>Firebase Auth Flutterfire Ui</string>
99
<key>CFBundleExecutable</key>
1010
<string>$(EXECUTABLE_NAME)</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>
16-
<string>complete</string>
16+
<string>firebase_auth_flutterfire_ui</string>
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>

firebase-auth-flutterfire-ui/complete/lib/app.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ import 'package:flutter/material.dart';
33
import 'auth_gate.dart';
44

55
class MyApp extends StatelessWidget {
6-
const MyApp({super.key});
6+
const MyApp({super.key, required this.clientId});
7+
8+
final String clientId;
9+
710
@override
811
Widget build(BuildContext context) {
912
return MaterialApp(
1013
theme: ThemeData(
1114
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
1215
),
13-
home: const AuthGate(),
16+
home: AuthGate(clientId: clientId),
1417
);
1518
}
1619
}

firebase-auth-flutterfire-ui/complete/lib/auth_gate.dart

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
44
import 'package:flutter/material.dart';
55

66
import 'home.dart';
7-
import 'main.dart';
87

98
class AuthGate extends StatelessWidget {
10-
const AuthGate({super.key});
9+
const AuthGate({super.key, required this.clientId});
10+
11+
final String clientId;
1112

1213
@override
1314
Widget build(BuildContext context) {
@@ -46,6 +47,15 @@ class AuthGate extends StatelessWidget {
4647
),
4748
);
4849
},
50+
sideBuilder: (context, shrinkOffset) {
51+
return Padding(
52+
padding: const EdgeInsets.all(20),
53+
child: AspectRatio(
54+
aspectRatio: 1,
55+
child: Image.asset('flutterfire_300x.png'),
56+
),
57+
);
58+
},
4959
);
5060
}
5161

firebase-auth-flutterfire-ui/complete/lib/home.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class HomeScreen extends StatelessWidget {
4343
body: Center(
4444
child: Column(
4545
children: [
46-
Image.asset('dash.png'),
46+
SizedBox(width: 250, child: Image.asset('assets/dash.png')),
4747
Text('Welcome!', style: Theme.of(context).textTheme.displaySmall),
4848
const SignOutButton(),
4949
],

0 commit comments

Comments
 (0)