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

Improved theme initialization and refactored auth logic #266

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

Conversation

DevAnuragT
Copy link

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This PR refines the theme initialization and authentication navigation in the app. The changes aim to improve readability, maintainability, and efficiency by consolidating logic and simplifying navigation flows.

Features Covered in this PR

  • Optimized theme initialization based on user settings.
  • Refactored authentication navigation for smoother transitions.
  • Code cleanup, including removing unused variables and redundant code.

Related Tickets & Documents

  • Related Issue # (Add any related issue numbers here)
  • Closes # (If this PR fully addresses an issue, include the number here)

Screenshots, Recordings

Attach screenshots or recordings if your PR affects the UI or user experience.

Tested Feature

  • In Real Device
  • In Emulator

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making this project better

return BlocBuilder<FontCubit, FontState>(
builder: (context, fontState) {
return MaterialApp(
navigatorKey: _navigatorKey,
Copy link
Owner

Choose a reason for hiding this comment

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

The performance gain may not be worth the nested widget BlocBuilders. These bloc's rarely change, so its better to preserve readability here

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.

2 participants