Skip to content

Investigate dart fix or other options for material/cupertino migration #172935

@Piinks

Description

@Piinks

This issue tracks the investigation into providing a custom fix with the existing dart fix command, or another tool, to automate the migration to the new, standalone design system packages.

To make the transition to the new packages as seamless as possible, we want to provide developers with automated tooling. Leveraging the existing dart fix infrastructure is the ideal way to handle the necessary code changes and significantly reduce migration friction for existing projects.

A custom fix would need to handle a one-time update for developers. The primary changes include:

  • Adding the new material and cupertino package dependencies to pubspec.yaml.
  • Updating import statements. This is crucial because the new packages will no longer re-export the entire widgets library, requiring an explicit import package:flutter/widgets.dart; in many cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listdependency: dartDart team may need to help usdependency:dart-triagedTriaged by Dart teamteam-designOwned by Design Languages team

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions