Skip to content

[Documentation] Additional BottomNavigationBar use cases through samples #33810

@shihaohong

Description

@shihaohong

Use case

Currently, the BottomNavigationBar documentation supplies sample code for a simple example involving updating the displayed Scaffold.body widget. However, there can also be more unique interaction patterns, such as:

  1. tapping an already-selected index for additional behavior (ie. to scroll to top of displayed page)
  2. having a unique item that doesn't update the selectedIndex (ie. a button that opens a dropdown or modal instead of updating the displayed Scaffold.body)

While these are less common, there is some desire for instruction on getting these behaviors implemented.

Proposal

Create sample docs for one or both cases above to show that BottomNavigationBar can be more flexible than expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions