-
Notifications
You must be signed in to change notification settings - Fork 29.7k
fix Applying decoration for a table row widget will cause render exce… #34285
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
Conversation
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cirrus is also unhappy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Private members don't really belong in a public doc comment. What does the user of RenderTable need to do to ensure that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should just be a comment starting with // instead of ///? And maybe move it one line down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a type annotation to the List
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a trailing comma after this and the next line and then fix indentation (only 2 spaces)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove whitespace after "Center"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems odd that we change the configuration of the RenderObject. Aren't the rowDecorations user-provided?
|
addressed all coments |
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a key place (maybe paint) add an assert for this condition?
* master: (84 commits) Compatibility pass on flutter/material tests for JavaScript compilation. (9) (flutter#33378) fix Applying decoration for a table row widget will cause render exception (flutter#34285) Add widget of the week videos (flutter#34356) Roll engine ab5c14b..67aadb6 (2 commits) (flutter#34350) Re-apply compressionState changes. (flutter#34341) Revert "update the Flutter.Frame event to use new engine APIs (flutter#34243)" (flutter#34352) Change Xcode project developmentRegion to 'en' and plist CFBundleDevelopmentRegion to DEVELOPMENT_LANGUAGE (flutter#34293) update the Flutter.Frame event to use new engine APIs (flutter#34243) [flutter_tool] Don't truncate verbose logs from _flutter.listViews (flutter#34255) ab5c14b Set Dart version to git hash 3166bbf24b0c929eef33fd5d0f69e0f36a9009f3 (Dart 2.3.3-dev) (flutter/engine#9292) (flutter#34336) Prepare for Uint8List SDK breaking changes (flutter#34295) Roll engine b14d971..d3c213e (3 commits) (flutter#34331) Roll engine 4fc95eb..b14d971 (4 commits) (flutter#34310) 4fc95eb Fixed memory leaks within FlutterFragment and FlutterView (flutter#34268, flutter#34269, flutter#34270). (flutter/engine#9288) (flutter#34305) Roll engine 2d2cfc0..de350c4 (2 commits) (flutter#34302) Roll engine 02e6a13..2d2cfc0 (3 commits) (flutter#34292) Split gradle_plugin_test.dart (flutter#34282) Roll engine 4d68474..02e6a13 (4 commits) (flutter#34281) Compatibility pass on flutter/widgets tests for JavaScript compilation. (8) (flutter#33377) Instrument usage of include_flutter.groovy and xcode_backend.sh (flutter#34189) ...
…ption
Description
Pushing an overlay route will cause the previous route to detach and rebuild. Table widget does not correctly handle the detach and rebuild. This pr fixes it.
Related Issues
#17243
Tests
I added the following tests:
"Table widget can be detached and re-attached"
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.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?