Skip to content

feat(home): add signup FAB for guest users #265

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isuri54
Copy link

@isuri54 isuri54 commented Apr 6, 2025

Fixes #

Describe the changes you have made in this PR -
-Added a dedicated signup FloatingActionButton(FAB) for guest users
-Visible only when (isGuest == true)
-Routes to '/auth' on press for seamless onboarding
-Positioned at 'Alignment(0.7, -0.8)' to avoid UI clutter

Screenshots of the changes (If any) -
Due to a local environmental issue preventing the app from fully building, I couldn't capture actual screenshots. But here's what changed:
Before - Guest users had to navigate via logout dialog
After -
if (localApi.userModel.isGuest == true)
FloatingActionButton(
onPressed: () => appRouter.pushNamed('/auth'),
backgroundColor: kYellow,
child: Icon(Icons.login, color: Colors.white),
)

Note: Please let me know if screenshots are strictly needed; I can try fixing the build and update later.

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.

1 participant