Move toggleable to widget layer#148272
Merged
victorsanni merged 11 commits intoflutter:masterfrom May 14, 2024
Merged
Conversation
guidezpl
approved these changes
May 14, 2024
Comment on lines
19
to
21
| /// A mixin for [StatefulWidget]s that implement toggleable | ||
| /// controls with toggle animations (e.g. [Switch]es, [Checkbox]es, and | ||
| /// [Radio]s). |
Member
There was a problem hiding this comment.
please mention cupertino widgets
Co-authored-by: Pierre-Louis <[email protected]>
Co-authored-by: Pierre-Louis <[email protected]>
Piinks
reviewed
May 14, 2024
Contributor
Piinks
left a comment
There was a problem hiding this comment.
So exciting! 🎉
Re: what new tests to add? This is really great that the existing tests all pass. ✅
I think the only tests we would really need here then would be to verify that ToggleableStateMixin lives in the widgets library.
I would create a test in test/widgets/ that creates concrete classes of these abstract classes we've moved down a layer, like
import 'package:flutter/widgets.dart';
class TestPainter extends ToggleablePainter {}That way, if the class is moved out of widgets for some reason, this file will be flagged as an analysis failure.
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2024
auto-submit bot
pushed a commit
to flutter/packages
that referenced
this pull request
May 15, 2024
flutter/flutter@d2da1b2...39651e8 2024-05-15 [email protected] Roll Flutter Engine from d35a1a603c80 to bf1c6da0dd31 (1 revision) (flutter/flutter#148369) 2024-05-15 [email protected] Roll Flutter Engine from 55c62ff82c7e to d35a1a603c80 (4 revisions) (flutter/flutter#148367) 2024-05-15 [email protected] Roll Flutter Engine from a1d930a3a84d to 55c62ff82c7e (3 revisions) (flutter/flutter#148365) 2024-05-14 [email protected] Roll Flutter Engine from dfb5871260a6 to a1d930a3a84d (2 revisions) (flutter/flutter#148360) 2024-05-14 [email protected] Roll Flutter Engine from 1b508a071c96 to dfb5871260a6 (1 revision) (flutter/flutter#148356) 2024-05-14 49699333+dependabot[bot]@users.noreply.github.com Bump codecov/codecov-action from 4.3.1 to 4.4.0 (flutter/flutter#148355) 2024-05-14 [email protected] Fix memory leaks in `SnackBar` (flutter/flutter#147212) 2024-05-14 [email protected] Fix memory leaks in open upwards page transition (flutter/flutter#148046) 2024-05-14 [email protected] Fixes semantics ordering when there are multiple TextFields with pref� (flutter/flutter#148267) 2024-05-14 [email protected] Roll Flutter Engine from ae9ff69a0840 to 1b508a071c96 (2 revisions) (flutter/flutter#148351) 2024-05-14 [email protected] Add missing InputDecorator.hintText tests (flutter/flutter#148113) 2024-05-14 [email protected] Fix abi key for local golden file testing (flutter/flutter#148072) 2024-05-14 [email protected] Maintain the same layout constraints for item in the ReorderableList during dragging as before dragging. (flutter/flutter#147863) 2024-05-14 [email protected] test material text field example (flutter/flutter#147864) 2024-05-14 [email protected] Move toggleable to widget layer (flutter/flutter#148272) 2024-05-14 [email protected] Roll Flutter Engine from 08b44d906fab to ae9ff69a0840 (1 revision) (flutter/flutter#148341) 2024-05-14 [email protected] add another print trace to runInView (flutter/flutter#148337) 2024-05-14 [email protected] Roll Flutter Engine from 7bf865774d06 to 08b44d906fab (4 revisions) (flutter/flutter#148338) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TecHaxter
pushed a commit
to TecHaxter/flutter_packages
that referenced
this pull request
May 22, 2024
flutter/flutter@d2da1b2...39651e8 2024-05-15 [email protected] Roll Flutter Engine from d35a1a603c80 to bf1c6da0dd31 (1 revision) (flutter/flutter#148369) 2024-05-15 [email protected] Roll Flutter Engine from 55c62ff82c7e to d35a1a603c80 (4 revisions) (flutter/flutter#148367) 2024-05-15 [email protected] Roll Flutter Engine from a1d930a3a84d to 55c62ff82c7e (3 revisions) (flutter/flutter#148365) 2024-05-14 [email protected] Roll Flutter Engine from dfb5871260a6 to a1d930a3a84d (2 revisions) (flutter/flutter#148360) 2024-05-14 [email protected] Roll Flutter Engine from 1b508a071c96 to dfb5871260a6 (1 revision) (flutter/flutter#148356) 2024-05-14 49699333+dependabot[bot]@users.noreply.github.com Bump codecov/codecov-action from 4.3.1 to 4.4.0 (flutter/flutter#148355) 2024-05-14 [email protected] Fix memory leaks in `SnackBar` (flutter/flutter#147212) 2024-05-14 [email protected] Fix memory leaks in open upwards page transition (flutter/flutter#148046) 2024-05-14 [email protected] Fixes semantics ordering when there are multiple TextFields with pref� (flutter/flutter#148267) 2024-05-14 [email protected] Roll Flutter Engine from ae9ff69a0840 to 1b508a071c96 (2 revisions) (flutter/flutter#148351) 2024-05-14 [email protected] Add missing InputDecorator.hintText tests (flutter/flutter#148113) 2024-05-14 [email protected] Fix abi key for local golden file testing (flutter/flutter#148072) 2024-05-14 [email protected] Maintain the same layout constraints for item in the ReorderableList during dragging as before dragging. (flutter/flutter#147863) 2024-05-14 [email protected] test material text field example (flutter/flutter#147864) 2024-05-14 [email protected] Move toggleable to widget layer (flutter/flutter#148272) 2024-05-14 [email protected] Roll Flutter Engine from 08b44d906fab to ae9ff69a0840 (1 revision) (flutter/flutter#148341) 2024-05-14 [email protected] add another print trace to runInView (flutter/flutter#148337) 2024-05-14 [email protected] Roll Flutter Engine from 7bf865774d06 to 08b44d906fab (4 revisions) (flutter/flutter#148338) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Aug 6, 2024
Contributor
Author
|
Related to #53059. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, toggleable exists independently in the material and cupertino libraries. Cupertino's toggleable is a minimal copy of material's, and so it makes sense to have only one toggleable in the widgets layer.
This change makes it easier for cupertino's toggleables (switch, radio, checkbox) to potentially have as many capabilities as material toggleables (for example, resolving in different widget states), thus increasing support for the cupertino library.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.