material-foundation / flutter-packages

A collection of useful Material Design packages
https://pub.dev/publishers/material.io
Apache License 2.0
836 stars 156 forks source link

[adaptive_breakpoints] Support for Material 3 Window sizes #402

Closed icnahom closed 7 months ago

icnahom commented 1 year ago

Package

adaptive_breakpoints

Description

Are there plans to migrate to the new material 3 breakpoints? https://m3.material.io/foundations/layout/applying-layout/window-size-classes

yanshouwang commented 11 months ago

Any plans?

icnahom commented 11 months ago

Since material 3 is a different spec, this package may need a full rewrite or we could have a different package called adaptive_window_size.

More resource: https://developer.android.com/guide/topics/large-screens/support-different-screen-sizes#window_size_classes

https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/material3/material3-window-size-class/src/commonMain/kotlin/androidx/compose/material3/windowsizeclass/WindowSizeClass.kt

icnahom commented 11 months ago

@guidezpl I could create a PR, but which direction should we go with?

guidezpl commented 11 months ago

https://pub.dev/packages/flutter_adaptive_scaffold is somewhat better supported.

We could have just the sizes here though, so that M2 users have an upgrade path to M3.

Either way, I can only provide advice as I'm working on non-Flutter things

guidezpl commented 7 months ago

Closing this issue due to discontinuation of the adaptive packages.