Unverified Commit b00b4e83 authored by Anthony's avatar Anthony Committed by GitHub

[Material] Add focus, highlight, and keyboard shortcuts to Slider (#53945)

parent 11ab2fa3
...@@ -505,7 +505,8 @@ class SliderThemeData with Diagnosticable { ...@@ -505,7 +505,8 @@ class SliderThemeData with Diagnosticable {
/// [Slider] is disabled. /// [Slider] is disabled.
final Color disabledThumbColor; final Color disabledThumbColor;
/// The color of the overlay drawn around the slider thumb when it is pressed. /// The color of the overlay drawn around the slider thumb when it is
/// pressed, focused, or hovered.
/// ///
/// This is typically a semi-transparent color. /// This is typically a semi-transparent color.
final Color overlayColor; final Color overlayColor;
......
...@@ -194,11 +194,9 @@ void main() { ...@@ -194,11 +194,9 @@ void main() {
SystemChannels.system.codec.encodeMessage(data), SystemChannels.system.codec.encodeMessage(data),
(ByteData data) { }, (ByteData data) { },
); );
final RenderObject renderObject = tester.renderObject(find.byType(Slider)); // _RenderSlider is the last render object in the tree.
final RenderObject renderObject = tester.allRenderObjects.last;
bool sliderBoxNeedsLayout; expect(renderObject.debugNeedsLayout, isTrue);
renderObject.visitChildren((RenderObject child) {sliderBoxNeedsLayout = child.debugNeedsLayout;});
expect(sliderBoxNeedsLayout, isTrue);
}); });
testWidgets('TimePicker relayout upon system fonts changes', (WidgetTester tester) async { testWidgets('TimePicker relayout upon system fonts changes', (WidgetTester tester) async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment