Skip to content

fix: prevent FAB from obscuring last list items in lesson mode#56

Merged
mikebarkmin merged 1 commit into
mainfrom
copilot/fix-fab-button-issue
May 20, 2026
Merged

fix: prevent FAB from obscuring last list items in lesson mode#56
mikebarkmin merged 1 commit into
mainfrom
copilot/fix-fab-button-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

The category selector FAB (shown when 2+ grade categories exist) overlaps the bottom of the student list in lesson mode, blocking interaction with the last rows (e.g. adding a note to the last student).

Change

When the FAB is visible, the ListView bottom padding is increased by the extended FAB height (56 dp) plus its default margin (kFloatingActionButtonMargin = 16 dp), giving the list enough room to scroll clear of the button.

const kExtendedFabHeight = 56.0;
final hasFab = gradeCategories.length > 1;
final listPadding = hasFab
    ? appScreenPadding.copyWith(
        bottom: appScreenPadding.bottom +
            kFloatingActionButtonMargin +
            kExtendedFabHeight,
      )
    : appScreenPadding;

@mikebarkmin mikebarkmin marked this pull request as ready for review May 20, 2026 04:30
@mikebarkmin mikebarkmin merged commit 0a0b0f8 into main May 20, 2026
@mikebarkmin mikebarkmin deleted the copilot/fix-fab-button-issue branch May 20, 2026 04:30
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