• Greg Spencer's avatar
    Adding edge avoidance, painting tests, general cleanup (#15078) · 7fab7f6d
    Greg Spencer authored
    Fixed the real repaint problem the Slider had (missing addListener), and added tests for it.
    
    Added GlobalKey reparenting test.
    
    Added the ability for the value indicator to slide left and right to avoid falling off the edge of the screen.
    It only shifts as much as it can without deforming, but even at large text scales, that is enough to keep the text on the screen.
    
    Updated the formatting on theme_data.dart and others to use longer line length.
    
    Also, removed a color tween that faded the value indicator in as it scaled, since that wasn't to spec.
    7fab7f6d
slider.dart 27.7 KB