Skip to content

DOC: Improve Navigation Bar Docs #96750

@2002Bishwajeet

Description

@2002Bishwajeet

In Material 3, Bottom Navigation bar has been renamed to Navigation Bar

Now, I could see that this widget has been implemented in Flutter 2.5 but the doc seems to be less informative about it

If we really compare between Bottom Navigation Bar and Navigation Bar there is a lot of difference in them. Say for e.g there isn't any dart pad code to run and test on the browser itself. Also it doesn't mention about any assertions needed to follow or such.

Navigation Destination Widget needs a little refactoring too. I mean it needs a little more context about what it does

Proposal

Add Dart Pad to the Navigation Bar docs so there must a live example of how this is actually different from the Material 2 Bottom Navigation Bar and maybe test some few properties and such.
Add necessary assertions or by default styling properties of this widget

Also on further exploring finding related issues to Material 3, I found a generic issue #91605 related to the context. So mentioning it here as this is related a bit to it

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/d: examplesSample code and demosf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions