-
-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(firebase_login): add firebase login example app #3946
Open
thisissandipp
wants to merge
9
commits into
rrousselGit:master
Choose a base branch
from
thisissandipp:docs/firebase-login-example
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,657
−0
Open
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
343d4ab
docs(firebase_login): add firebase login example app
thisissandipp e9a9bee
feat: remove firebase config files from version control
thisissandipp eafebb7
feat: update folder structure, remove observer
thisissandipp fca5821
feat: replace `.when` with switch and `.map`
thisissandipp 8a6ba42
docs: add readme instructions and sample screen captures
thisissandipp 0d289b4
feat: add few widget tests
thisissandipp b885c15
feat: show user details in home page
thisissandipp 1bca381
docs: update instructions, screenshot orientation
thisissandipp 9e7c2f1
fix: typo
thisissandipp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.build/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
.swiftpm/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
# Firebase configurations | ||
firebase.json | ||
firebase_options.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3" | ||
channel: "stable" | ||
|
||
project_type: app | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
- platform: android | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
- platform: ios | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
- platform: macos | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
- platform: web | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
- platform: windows | ||
create_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
base_revision: 68415ad1d920f6fe5ec284f5c2febf7c4dd5b0b3 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Firebase Login | ||
|
||
Example flutter app built with Riverpod that demonstrates authentication with Firebase. | ||
|
||
<table> | ||
<tr> | ||
<td><img src="./samples/demo.gif" alt="demo" width="320"></td> | ||
<td><img src="./samples/error.png" alt="error" width="320"></td> | ||
<td><img src="./samples/signup.png" alt="signup" width="320"></td> | ||
<td><img src="./samples/home.png" alt="home" width="320"></td> | ||
</tr> | ||
</table> | ||
|
||
## Features | ||
|
||
- Sign up with Email and Password | ||
- Sign in with Email and Password | ||
- Sign in with Google | ||
- Error handling | ||
|
||
## Getting Started | ||
|
||
1. Generate the native folders first by running `flutter create --platforms=android,ios,web,windows,macos .` | ||
2. Create your firebase project, and enable email/password authentication and google. | ||
3. Use [FlutterFire CLI](https://firebase.google.com/docs/flutter/setup?platform=ios) to connect the app with the firebase project. | ||
4. Follow the [platform integration steps](https://pub.dev/packages/google_sign_in#platform-integration) for the `google_sign_in` package. | ||
5. Run the app. | ||
6. To run the tests, run `flutter test`. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include: ../analysis_options.yaml | ||
# enable riverpod_lint | ||
analyzer: | ||
errors: | ||
prefer_relative_imports: ignore | ||
plugins: | ||
- custom_lint |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Enhance the getting started section with prerequisites and detailed setup steps.
Consider expanding this section to include: