Skip to content

Add Material 3 interactive dartpad samples #101048

@guidezpl

Description

@guidezpl

This is a tracking issue for adding interactive code samples (with {@tool dartpad}) to components and widgets which support Material 3.

We should consider leveraging existing existing code samples by either

  • wrapping existing samples with a common widget which shows a toggle to switch the sample to Material 3, at some point, have that be the default (preferred, IMO)
  • copy the simplest existing sample and adding useMaterial3: true

For new Material 3-only widgets, such as NavigationBar, the API doc will only show the Material 3 look.

cc @darrenaustin WDYT?

Components

Other widgets

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectd: api docsIssues with https://api.flutter.dev/f: 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

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions