Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b00b4e83
Unverified
Commit
b00b4e83
authored
Apr 16, 2020
by
Anthony
Committed by
GitHub
Apr 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Material] Add focus, highlight, and keyboard shortcuts to Slider (#53945)
parent
11ab2fa3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
760 additions
and
277 deletions
+760
-277
slider.dart
packages/flutter/lib/src/material/slider.dart
+182
-21
slider_theme.dart
packages/flutter/lib/src/material/slider_theme.dart
+2
-1
slider_test.dart
packages/flutter/test/material/slider_test.dart
+506
-189
slider_theme_test.dart
packages/flutter/test/material/slider_theme_test.dart
+67
-61
system_fonts_test.dart
packages/flutter/test/painting/system_fonts_test.dart
+3
-5
No files found.
packages/flutter/lib/src/material/slider.dart
View file @
b00b4e83
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/material/slider_theme.dart
View file @
b00b4e83
...
...
@@ -505,7 +505,8 @@ class SliderThemeData with Diagnosticable {
/// [Slider] is disabled.
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.
final
Color
overlayColor
;
...
...
packages/flutter/test/material/slider_test.dart
View file @
b00b4e83
This diff is collapsed.
Click to expand it.
packages/flutter/test/material/slider_theme_test.dart
View file @
b00b4e83
This diff is collapsed.
Click to expand it.
packages/flutter/test/painting/system_fonts_test.dart
View file @
b00b4e83
...
...
@@ -194,11 +194,9 @@ void main() {
SystemChannels
.
system
.
codec
.
encodeMessage
(
data
),
(
ByteData
data
)
{
},
);
final
RenderObject
renderObject
=
tester
.
renderObject
(
find
.
byType
(
Slider
));
bool
sliderBoxNeedsLayout
;
renderObject
.
visitChildren
((
RenderObject
child
)
{
sliderBoxNeedsLayout
=
child
.
debugNeedsLayout
;});
expect
(
sliderBoxNeedsLayout
,
isTrue
);
// _RenderSlider is the last render object in the tree.
final
RenderObject
renderObject
=
tester
.
allRenderObjects
.
last
;
expect
(
renderObject
.
debugNeedsLayout
,
isTrue
);
});
testWidgets
(
'TimePicker relayout upon system fonts changes'
,
(
WidgetTester
tester
)
async
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment