Skip to content

fix: prefer imports from 'pkg:flutter/widgets.dart' instead of 'material' - #2254

Merged
JaffaKetchup merged 1 commit into
masterfrom
decouple-from-material
Sep 4, 2026
Merged

fix: prefer imports from 'pkg:flutter/widgets.dart' instead of 'material'#2254
JaffaKetchup merged 1 commit into
masterfrom
decouple-from-material

Conversation

@JaffaKetchup

@JaffaKetchup JaffaKetchup commented Sep 3, 2026

Copy link
Copy Markdown
Member

Fixes #2256.

To make some preparation towards the decoupling of the Material and Cupertino UIs from Flutter, we should not be using the material import in the following places where the base widgets import works fine.

@JaffaKetchup
JaffaKetchup marked this pull request as ready for review September 3, 2026 18:26
@JaffaKetchup
JaffaKetchup requested a review from a team September 3, 2026 18:26
@JaffaKetchup JaffaKetchup changed the title fix: prefer imports from 'pkg:flutter/widgets.dart' instead of 'material.dart' fix: prefer imports from 'pkg:flutter/widgets.dart' instead of 'material' Sep 3, 2026
@JaffaKetchup
JaffaKetchup merged commit 638554b into master Sep 4, 2026
11 checks passed
@JaffaKetchup
JaffaKetchup deleted the decouple-from-material branch September 4, 2026 12:24
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.

Unnecessary internal usage of 'pkg:flutter/material.dart' instead of 'widgets' or 'dart:ui'

2 participants