Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,180 changes: 683 additions & 497 deletions firebase-auth-flutterfire-ui/codelab_rebuild.yaml

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions firebase-auth-flutterfire-ui/complete/.firebaserc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ plugins {
}

android {
namespace = "com.example.complete"
namespace = "com.example.firebase_auth_flutterfire_ui"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
ndkVersion = "27.0.12077973"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand All @@ -21,10 +21,10 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.complete"
applicationId = "com.example.firebase_auth_flutterfire_ui"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
minSdk = 23
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="complete"
android:label="firebase_auth_flutterfire_ui"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.complete
package com.example.firebase_auth_flutterfire_ui

import io.flutter.embedding.android.FlutterActivity

Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions firebase-auth-flutterfire-ui/complete/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Complete</string>
<string>Firebase Auth Flutterfire Ui</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>complete</string>
<string>firebase_auth_flutterfire_ui</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
7 changes: 5 additions & 2 deletions firebase-auth-flutterfire-ui/complete/lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import 'package:flutter/material.dart';
import 'auth_gate.dart';

class MyApp extends StatelessWidget {
const MyApp({super.key});
const MyApp({super.key, required this.clientId});

final String clientId;

@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
),
home: const AuthGate(),
home: AuthGate(clientId: clientId),
);
}
}
14 changes: 12 additions & 2 deletions firebase-auth-flutterfire-ui/complete/lib/auth_gate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
import 'package:flutter/material.dart';

import 'home.dart';
import 'main.dart';

class AuthGate extends StatelessWidget {
const AuthGate({super.key});
const AuthGate({super.key, required this.clientId});

final String clientId;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -46,6 +47,15 @@ class AuthGate extends StatelessWidget {
),
);
},
sideBuilder: (context, shrinkOffset) {
return Padding(
padding: const EdgeInsets.all(20),
child: AspectRatio(
aspectRatio: 1,
child: Image.asset('flutterfire_300x.png'),
),
);
},
);
}

Expand Down
2 changes: 1 addition & 1 deletion firebase-auth-flutterfire-ui/complete/lib/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HomeScreen extends StatelessWidget {
body: Center(
child: Column(
children: [
Image.asset('dash.png'),
SizedBox(width: 250, child: Image.asset('assets/dash.png')),
Text('Welcome!', style: Theme.of(context).textTheme.displaySmall),
const SignOutButton(),
],
Expand Down
2 changes: 1 addition & 1 deletion firebase-auth-flutterfire-ui/complete/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);

runApp(const MyApp());
runApp(const MyApp(clientId: clientId));
}
1 change: 0 additions & 1 deletion firebase-auth-flutterfire-ui/complete/macos/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ flutter_macos_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
Expand Down
Loading