mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
c1339411bb
Fixes issues such as * https://github.com/flutter/flutter-intellij/issues/814 * https://github.com/dart-lang/sdk/issues/33957 . Essentially, in Flutter, it's often useful to create a new context in the UI/widget tree as a place to begin a search towards the trunk of the tree for various state structures attached to lower levels of the tree. The basic `Builder` widget is the official means for creating such a context/entry-point. The patches in this PR are essentially a copy-paste-tweak from two types of existing, similar assists. The main origin was taken from `FlutterWrapStreamBuilder` which wraps client code with a constructor for the StreamBuilder sub-class. The new assist, provided here, is a little more basic/general than the StreamBuilder so it was able to also adopt assertion and test code from some of the other assists for basic widgets. Closes https://github.com/dart-lang/sdk/pull/45656 https://github.com/dart-lang/sdk/pull/45656 GitOrigin-RevId: 00a5043e5dbd410f24f30f6503711413341dbe7a Change-Id: I5f93837af571b4974e35da131112f82cd9359697 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194941 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
.dart_tool | ||
flutter | ||
meta | ||
pedantic/lib | ||
ui/lib | ||
vector_math |