Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rfw] Remove use of ButtonBar #148220

Open
stuartmorgan opened this issue May 13, 2024 · 8 comments · May be fixed by flutter/packages#6744
Open

[rfw] Remove use of ButtonBar #148220

stuartmorgan opened this issue May 13, 2024 · 8 comments · May be fixed by flutter/packages#6744
Assignees
Labels
c: tech-debt Technical debt, code quality, testing, etc. p: deprecated api Use of a deprecated Dart API in flutter/packages that needs to be updated p: rfw Remote Flutter Widgets package P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team waiting for PR to land (fixed) A fix is in flight

Comments

@stuartmorgan
Copy link
Contributor

   info • lib/src/flutter/material_widgets.dart:25:9 • 'ButtonBar' is deprecated and shouldn't be used. Use OverflowBar instead. This feature
          was deprecated after v3.21.0-10.0.pre. Try replacing the use of the deprecated member with the replacement. •
          deprecated_member_use
   info • lib/src/flutter/material_widgets.dart:59:13 • 'ButtonBar' is deprecated and shouldn't be used. Use OverflowBar instead. This feature
          was deprecated after v3.21.0-10.0.pre. Try replacing the use of the deprecated member with the replacement. •
          deprecated_member_use
   info • lib/src/flutter/material_widgets.dart:60:62 • 'ButtonBar' is deprecated and shouldn't be used. Use OverflowBar instead. This feature
          was deprecated after v3.21.0-10.0.pre. Try replacing the use of the deprecated member with the replacement. •
          deprecated_member_use
   info • lib/src/flutter/material_widgets.dart:62:13 • 'ButtonBar' is deprecated and shouldn't be used. Use OverflowBar instead. This feature
          was deprecated after v3.21.0-10.0.pre. Try replacing the use of the deprecated member with the replacement. •
          deprecated_member_use
   info • lib/src/flutter/material_widgets.dart:63:50 • 'ButtonBar' is deprecated and shouldn't be used. Use OverflowBar instead. This feature
          was deprecated after v3.21.0-10.0.pre. Try replacing the use of the deprecated member with the replacement. •
          deprecated_member_use
@stuartmorgan stuartmorgan added package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team c: tech-debt Technical debt, code quality, testing, etc. p: rfw Remote Flutter Widgets package p: deprecated api Use of a deprecated Dart API in flutter/packages that needs to be updated P2 Important issues not at the top of the work list triaged-ecosystem Triaged by Ecosystem team labels May 13, 2024
@stuartmorgan
Copy link
Contributor Author

/cc @Hixie

@Hixie
Copy link
Contributor

Hixie commented May 15, 2024

I'm not sure what the context is here.

@stuartmorgan
Copy link
Contributor Author

There isn't much context to provide; since #143312 the people who deprecated APIs are no longer responsible for following up on addressing their uses in Flutter-team-owned code, so for flutter/packages we instituted a routine sweep by gardeners to ensure they don't explode later. This came up in that sweep.

If you mean context on why ButtonBar was deprecated, I don't have any (one of the downsides of the new process).

@Hixie
Copy link
Contributor

Hixie commented May 15, 2024

My understanding of #143312 is that it enables people to land changes without breaking the tree, but it doesn't mean it's not their responsibility to fix the problems they cause. (At a minimum, they would need to do so before removing the deprecated features at the end of the deprecation cycle.)

@stuartmorgan
Copy link
Contributor Author

At a minimum, they would need to do so before removing the deprecated features at the end of the deprecation cycle.

As I raised during discussions around the policy change after it was made, waiting until the end of the deprecation cycle to remove deprecated code from published packages dramatically worsens the experience of clients, because it maximizes the number of people whose builds will be broken when updating Flutter.

It's one of the many cases where trying to apply a policy designed for flutter/engine and flutter/flutter to flutter/packages works very poorly.

@Hixie
Copy link
Contributor

Hixie commented May 15, 2024

I mean, there was no meaningful discussion around that policy change, so, yeah.
I agree it makes things dramatically worse in certain cases.
It should probably be reverted and then actually discussed properly, with an actual design doc, etc.

@stuartmorgan
Copy link
Contributor Author

Regardless of overall policy: this issue tracks a specific piece of known technical debt that now exists in rfw, and I was CC'ing you since my understanding is that you wanted to be CC'd on rfw issues not because I expect you to necessarily fix it. (The old policy would have resulted in a similar issue, just filed by the person doing the deprecation.)

@Hixie
Copy link
Contributor

Hixie commented May 15, 2024

Totally, yeah, sorry if I implied otherwise.

@Piinks Piinks self-assigned this May 15, 2024
@Piinks Piinks linked a pull request May 15, 2024 that will close this issue
11 tasks
@Piinks Piinks added the waiting for PR to land (fixed) A fix is in flight label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: tech-debt Technical debt, code quality, testing, etc. p: deprecated api Use of a deprecated Dart API in flutter/packages that needs to be updated p: rfw Remote Flutter Widgets package P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team waiting for PR to land (fixed) A fix is in flight
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants