Provide the BuildContext to createRenderObject and updateRenderObject
We'll need this for RTL support because the RTL state will live in the widget tree. Also, remove the `oldWidget` argument to updateRenderObject because there aren't any clients for it.
This commit is contained in:
@@ -37,7 +37,7 @@ class RenderDots extends RenderConstrainedBox {
|
||||
|
||||
class Dots extends OneChildRenderObjectWidget {
|
||||
Dots({ Key key, Widget child }) : super(key: key, child: child);
|
||||
RenderDots createRenderObject() => new RenderDots();
|
||||
RenderDots createRenderObject(BuildContext context) => new RenderDots();
|
||||
}
|
||||
|
||||
void main() {
|
||||
|
||||
Reference in New Issue
Block a user