Skip to content

Refactor NavBar#207

Merged
domai-tb merged 11 commits intomasterfrom
feature/nav-bar-rotation
Mar 29, 2026
Merged

Refactor NavBar#207
domai-tb merged 11 commits intomasterfrom
feature/nav-bar-rotation

Conversation

@MarcGallert
Copy link
Copy Markdown
Contributor

Render exactly 5 bottom-nav icons at rest and animate the visible window with a smooth horizontal slide; preserves existing callbacks and label behavior.

@domai-tb domai-tb self-requested a review September 7, 2025 16:07
@domai-tb domai-tb assigned domai-tb and MarcGallert and unassigned domai-tb Sep 7, 2025
@domai-tb domai-tb added the enhancement New feature or request label Sep 7, 2025
@domai-tb
Copy link
Copy Markdown
Member

domai-tb commented Oct 7, 2025

Seems good so far! Beside the padding issue, the only thing I noticed is that the animation doesn't run quite smoothly. See the following Screenrecording. Can you fix this?

Copy link
Copy Markdown
Member

@domai-tb domai-tb left a comment

Choose a reason for hiding this comment

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

Animation should be smoother

@domai-tb domai-tb added this to the v2.4.2 milestone Oct 7, 2025
@domai-tb domai-tb moved this to In progress in Campus App by AStA Roadmap Oct 7, 2025
@MarcGallert MarcGallert enabled auto-merge October 7, 2025 15:07
Copilot AI review requested due to automatic review settings March 29, 2026 15:50
@domai-tb domai-tb disabled auto-merge March 29, 2026 15:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the home bottom navigation bar to display a fixed window of 5 icons and animate the visible set horizontally, while keeping existing page-selection callbacks and label behavior.

Changes:

  • Reworked BottomNavBar to clip to 5 visible items and animate between window positions.
  • Updated BottomNavBarItem layout/padding and label rendering (single-line, no-wrap when active).
  • Standardized multiple icon Image.asset usages to filterQuality: FilterQuality.none.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
lib/utils/widgets/subpage_button.dart Adjusts asset image filter quality for leading icon rendering.
lib/utils/widgets/campus_icon_button.dart Sets filter quality for raster icons in the reusable icon button.
lib/pages/more/widgets/external_link_button.dart Adjusts asset image filter quality for leading icon rendering.
lib/pages/home/widgets/side_nav_bar_item.dart Adjusts asset image filter quality for side-nav icons.
lib/pages/home/widgets/bottom_nav_bar_item.dart Tweaks icon padding/animation and switches label to an AnimatedSwitcher single-line text.
lib/pages/home/widgets/bottom_nav_bar.dart Implements the 5-icon visible window, safe-area-aware sizing, and animated transitions between window positions.

Comment thread lib/pages/home/widgets/bottom_nav_bar.dart
Comment thread lib/pages/home/widgets/bottom_nav_bar.dart
Comment thread lib/pages/home/widgets/bottom_nav_bar.dart
Comment thread lib/pages/home/widgets/bottom_nav_bar.dart
Comment thread lib/pages/home/widgets/bottom_nav_bar.dart
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@domai-tb
Copy link
Copy Markdown
Member

What the fuck... All automatic rules for Copilot should be disabled...

@domai-tb domai-tb merged commit 90fadc2 into master Mar 29, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in Campus App by AStA Roadmap Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants