mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This changes Switch from being a subclass of the Toggleable widget to being a standalone Component with a custom RenderObject. This is to enable adding Switch-specific radial reaction animations in a subsequent patch. The CustomPaint logic that Toggleable was using does not provide a nice way for a class and its subclass to both participate in deciding to repaint.