Skip to content
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

Create login page #1394

Merged
merged 39 commits into from
Jan 3, 2025
Merged

Create login page #1394

merged 39 commits into from
Jan 3, 2025

Conversation

pedroafmonteiro
Copy link
Contributor

@pedroafmonteiro pedroafmonteiro commented Nov 19, 2024

Closes #1375

  • Login page layout
  • Widgets (Login, Remember, Problems and Terms and Conditions) new design
  • Implement splash screen
  • Login with credentials popup

To implement the splash screen

  • To add the gradient and animation to the splash screen I needed to add this package, because it allow us to create a splash screen with custom widgets for the gradients and the animation: https://pub.dev/packages/another_flutter_splash_screen This was accomplished without adding the package.

  • The native splash screen was replaced by the same background color as the new splash and login page with a transparent logo image through this package. I think that, before, both the android and ios splash screens were implemented manually, but this package does that automatically with a simple configuration in the pubspec.yaml file: https://pub.dev/packages/flutter_native_splash

Review checklist

  • Terms and conditions reflect the current change
  • Contains enough appropriate tests
  • If aimed at production, writes a new summary in whatsnew/whatsnew-pt-PT
  • Properly adds an entry in changelog.md with the change
  • If PR includes UI updates/additions, its description has screenshots
  • Behavior is as expected
  • Clean, well-structured code

@pedroafmonteiro pedroafmonteiro linked an issue Nov 20, 2024 that may be closed by this pull request
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 3.75000% with 154 lines in your changes missing coverage. Please review.

Project coverage is 12%. Comparing base (eded9d6) to head (dfcb039).
Report is 23 commits behind head on ui/redesign.

Additional details and impacted files
@@             Coverage Diff             @@
##           ui/redesign   #1394   +/-   ##
===========================================
- Coverage           12%     12%   -0%     
===========================================
  Files              270     271    +1     
  Lines             7282    7341   +59     
===========================================
+ Hits               808     812    +4     
- Misses            6474    6529   +55     

@pedroafmonteiro
Copy link
Contributor Author

I implemented the splash screen without the "another_flutter_splash_screen" package.
There's an issue though. A black screen appears between the Splash Screen view and the next screen (login or homepage)

@pedroafmonteiro
Copy link
Contributor Author

pedroafmonteiro commented Dec 4, 2024

there's a linting problem, as Tween() asks for doubles, but if I put ints, it gives an error and I can't cast it as Animation because it stops working
it's now fixed, but login_old.dart is giving problems now

@thePeras
Copy link
Member

thePeras commented Dec 8, 2024

@pedroafmonteiro if login_old.dart is giving you problems and isn't bing use, just delete it!

@thePeras
Copy link
Member

thePeras commented Dec 9, 2024

If it's already ready to review, just convert the PR to "already to review". I am excited to look into this.

@pedroafmonteiro
Copy link
Contributor Author

The login with credentials popup is the only thing left. It should be done between today and tomorrow!

@pedroafmonteiro pedroafmonteiro marked this pull request as ready for review December 18, 2024 11:01
@pedroafmonteiro pedroafmonteiro requested a review from a team December 18, 2024 11:01
@vitormpp
Copy link
Member

vitormpp commented Dec 27, 2024

Altough this is not the primary purpose of this PR (and you haven't changed this code), i think there are some issues in the login that need to be addressed here or in a new issue:

  • in _login method, we clear text controllers twice after a successful login; also, the switch lacks break statements;
  • in fa_login the string 'Failed to authenticate' is hardcoded; we should use something like ToastMessage.error(context, S.of(context).failed_login) (as we do in login function)

Copy link
Member

@thePeras thePeras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 🛫

@DGoiana
Copy link
Collaborator

DGoiana commented Jan 2, 2025

It looks pretty neat! Just check out the comments above, remove unneeded comments and we're ready to merge it!

Copy link
Collaborator

@DGoiana DGoiana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@DGoiana DGoiana merged commit d608c5e into ui/redesign Jan 3, 2025
6 checks passed
@DGoiana DGoiana deleted the redesign/login-page branch January 3, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement new login page
5 participants