Skip to content

Story of layout PR #2

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

Closed
wants to merge 20 commits into from
Closed

Story of layout PR #2

wants to merge 20 commits into from

Conversation

albertusdev
Copy link
Owner

@albertusdev albertusdev commented Oct 24, 2019

Signed-off-by: Albertus Angga Raharja albertusangga@google.com

Description

Flutter framework changes required for Story of Layout features https://github.com/albertusangga/devtools/pull/1/files

Related Issues

Replace this paragraph with a list of issues related to this PR from our issue database. Indicate, which of these issues are resolved or fixed by this PR.

Tests

I added the following tests:

Replace this with a list of the tests that you added as part of this PR. A change in behaviour with no test covering it
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See Test Coverage.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

Signed-off-by: Albertus Angga Raharja <albertusangga@google.com>
albertusdev pushed a commit to albertusdev/devtools that referenced this pull request Oct 25, 2019
… for details tree, and several minor changes.

- Create proper deserializer method for flex properties from DiagnosticsNode
- Create new flag (`isExperimentalStoryOfLayoutEnabled`) in `InspectorTreeFlutterController` to prevent showing all this features changes until my PR (github.com/albertusdev/flutter/pull/2) is landed to Flutter main repository
- Inspector details tree now live inside of Tabs! User can focus on layout details instead if they want to.
- Removed animation from DianogsticsNodeDescriptions for now (due to minor performance concerns and adding new flag, might add it later!)
- Changed hardcoded constants for Buttons in InspectorScreen to prevent button groups expanding to two lines
albertusdev pushed a commit to albertusdev/devtools that referenced this pull request Oct 25, 2019
… for details tree, and several minor changes.

- Create proper deserializer method for flex properties from DiagnosticsNode
- Create new flag (`isExperimentalStoryOfLayoutEnabled`) in `InspectorTreeFlutterController` to prevent showing all this features changes until my PR (github.com/albertusdev/flutter/pull/2) is landed to Flutter main repository
- Inspector details tree now live inside of Tabs! User can focus on layout details instead if they want to.
- Removed animation from DianogsticsNodeDescriptions for now (due to minor performance concerns and adding new flag, might add it later!)
- Changed hardcoded constants for Buttons in InspectorScreen to prevent button groups expanding to two lines
Albertus Angga Raharja added 4 commits October 25, 2019 18:25
albertusdev pushed a commit to flutter/devtools that referenced this pull request Oct 30, 2019
* Show constraints next to Widget in Summary Tree

* Highlight children's constraints that got unconstrained, highlight parent widget that did the unconstraining, and add animation

* Very early prototype of 'Story of Your Flex Widget' dialog

* - Avoid using hardcoded color and instead use Color from Theme (to support Light/Dark theme)
- Remove hack in InspectorTree node
- Remove wrong import
- Rename 'Story of your Flex widget' to 'Story of the layout of your Row/Column widget'

* Added experimental flag for story of layout feature changes, add tabs for details tree, and several minor changes.

- Create proper deserializer method for flex properties from DiagnosticsNode
- Create new flag (`isExperimentalStoryOfLayoutEnabled`) in `InspectorTreeFlutterController` to prevent showing all this features changes until my PR (github.com/albertusdev/flutter/pull/2) is landed to Flutter main repository
- Inspector details tree now live inside of Tabs! User can focus on layout details instead if they want to.
- Removed animation from DianogsticsNodeDescriptions for now (due to minor performance concerns and adding new flag, might add it later!)
- Changed hardcoded constants for Buttons in InspectorScreen to prevent button groups expanding to two lines

* Remove debugLayoutModeEnabled from DiagnosticsNodeDescription

* Change isExperimentalStoryOfLayoutEnabled default value to false

* Revert diagnostics.dart

* Revert spreading getServiceExtensionWidgets() in Flutter InspectorScreen

* Remove unnecessary isSummaryTreeNode field in InspectorTreeNode constructor

* Display tab by default and fix code style and formatting

* Port story of flex widget to Tab

* Align expandCollapseButtons in the same row with the TabBar

* Rename layout_tab to inspector_screen_details_tab

* Partial highlight constraint and change deserialize method of FlexProperties

* Minor cleanups

- Stop exposing InspectorController in InspectorTreeControllerFlutter
- Remove shouldHighlightConstraint getter since it is unnecessary now
- Rename some variable names
- Add copyright in new files

* Add todos

* Add simple widget tests and handle case when Flex element does not have children

* Extended EnumDeserializer to contain reverse lookup and rename it to EnumUtils instead

* Cleanup & listen to InspectorController instead of TreeControllerFlutter

* Remove todo

* Remove InspectorControllerClient implementation in LayoutDetailsTab

* Rename deserializer to enum utils and make enum utils private

* Remove redundant method calls

* Stop passing InspectorController to InspectorTree flutter

- Add todos
- Rename toName & toEnum to name and enum
- Minor cleanups

* Add TODO

* Remove redundant comment
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.

1 participant