• James Robinson's avatar
    Make Switch a standalone class with a custom RenderObject · 445f4ee8
    James Robinson authored
    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.
    445f4ee8
toggleable.dart 2.27 KB