Add the app icon to the top of the navigation rail #242
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-learn!242
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/242/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds the Halkyon icon as a brand mark at the top of the navigation rail (its
leadingslot, above the destinations), mirroring the logo placement in the StudySmarter reference.How
ClipRRect. The icon has a solid white background, so the rounded clip reads as a tidy app-icon tile that stays legible on any rail surface (light or dark) - rather than a bare white square.assets/icon/halkyon_icon.pngas a bundled Flutter asset (the same PNGflutter_launcher_iconsalready reads at generation time).cacheWidthcaps the decode so the 40-dp logo doesn't hold a full 1024� bitmap.Verification
dart analyze(whole package) ? clean.app_router_test(23) green - it renders the shell/rail, confirming the asset loads in tests and nothing regressed.Note
This uses the white-background app icon as a rounded tile. If you'd rather have a transparent brand mark sitting directly on the rail (like the reference's logo), send a transparent-bg PNG and I'll swap it in (no tile).