Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@robert-ancell
Copy link
Contributor

Set everything up in the construction function, instead using properties and a constructed vfunc. While this is the pure GObject way of doing things we haven't done it in any other classes in Flutter and it is more complex than doing it all in one function. We no longer need to keep the project ref in the FlView which is never used beyond construction.

Set everything up in the construction function, instead using properties and a
constructed vfunc. While this is the pure GObject way of doing things we
haven't done it in any other classes in Flutter and it is more complex than
doing it all in one function. We no longer need to keep the project ref in the
FlView which is never used beyond construction.
@robert-ancell robert-ancell requested a review from cbracken July 24, 2024 14:18
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@robert-ancell
Copy link
Contributor Author

This is also motivated by simplifying this code to support multi-view which will share an engine between views.

@stuartmorgan-g
Copy link
Contributor

test-exempt: code refactor with no semantic change

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

@robert-ancell
Copy link
Contributor Author

Was merged in #54080 (this should have been merged first).

@robert-ancell robert-ancell deleted the linux-simplify-fl-view-constructor branch July 25, 2024 07:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants