mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add assertion to _CupertinoSwitchRenderObjectWidget, otherwise it is confusing why updateRenderObject omits state update (#112044)
This commit is contained in:
parent
31d03d5058
commit
a5dc49f4da
@ -378,6 +378,7 @@ class _CupertinoSwitchRenderObjectWidget extends LeafRenderObjectWidget {
|
||||
|
||||
@override
|
||||
void updateRenderObject(BuildContext context, _RenderCupertinoSwitch renderObject) {
|
||||
assert(renderObject._state == state);
|
||||
renderObject
|
||||
..value = value
|
||||
..activeColor = activeColor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user