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

Add Jetpack Navigation Suite components and enhance typography styles #372

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

atick-faisal
Copy link
Owner

This pull request includes several changes to improve the Jetpack Compose application, focusing on enhancing the navigation system, updating dependencies, and refining UI components. The most important changes are grouped by theme below:

Navigation Enhancements:

  • Introduced JetpackNavigationSuiteScaffold and JetpackNavigationSuiteScope to manage the navigation suite more effectively. (app/src/main/kotlin/dev/atick/compose/ui/JetpackApp.kt)
  • Added a new internal JetpackApp function to handle navigation state and UI updates, including callbacks for settings and top app bar actions. (app/src/main/kotlin/dev/atick/compose/ui/JetpackApp.kt)
  • Refactored navigation item functions to use the new navigation suite components. (app/src/main/kotlin/dev/atick/compose/ui/JetpackApp.kt)

Dependency Updates:

  • Added new dependencies for material3.navigationSuite and material3.adaptive to support the updated navigation and adaptive UI components. (core/ui/build.gradle.kts)

UI Component Refinements:

  • Modified JetpackOutlinedButton to use a constant for the disabled outlined button border alpha. (core/ui/src/main/kotlin/dev/atick/core/ui/components/Button.kt)

State Management Improvements:

  • Updated JetpackAppState to include a fallback mechanism for the current destination, ensuring a smoother navigation experience. (app/src/main/kotlin/dev/atick/compose/ui/JetpackAppState.kt)
  • Added a previous destination state to handle cases where the current entry is null. (app/src/main/kotlin/dev/atick/compose/ui/JetpackAppState.kt)

These changes aim to enhance the overall user experience by improving navigation handling, updating dependencies for better functionality, and refining UI components for consistency and clarity.

@atick-faisal atick-faisal merged commit 3dad074 into main Feb 2, 2025
1 check passed
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