-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Slider shows visual label of value on focus #152960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slider shows visual label of value on focus #152960
Conversation
|
FYI @TahaTesser in case this affects the slider rewrite (which I need to catch up on reviewing!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM:) Thanks for the fix!
| theme: ThemeData( | ||
| sliderTheme: const SliderThemeData( | ||
| showValueIndicator: ShowValueIndicator.always, | ||
| ), | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Seems we can remove this part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
| final FocusNode focusNode = FocusNode(); | ||
| addTearDown(focusNode.dispose); | ||
|
|
||
| Widget buildApp({bool enabled = true}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe we can remove the parameter here since we only tested the enable slider:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks for the recs!
MitchellGoodwin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
7d3e509 to
fbe9704
Compare
flutter/flutter@cc13cd1...99f00a1 2024-08-15 engine-flutter-autoroll@skia.org Roll Flutter Engine from 76a1c64f4e63 to 971ddd9fe1bf (6 revisions) (flutter/flutter#153487) 2024-08-14 36861262+QuncCccccc@users.noreply.github.com Update tokens to 5.0.0 (flutter/flutter#153385) 2024-08-14 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.26.1 to 3.26.2 (flutter/flutter#153468) 2024-08-14 goderbauer@google.com Enable invalid_runtime_check_with_js_interop_types, use_truncating_division (flutter/flutter#153464) 2024-08-14 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9b8421662ec9 to 76a1c64f4e63 (1 revision) (flutter/flutter#153465) 2024-08-14 engine-flutter-autoroll@skia.org Roll Flutter Engine from 328c4df8329f to 9b8421662ec9 (1 revision) (flutter/flutter#153463) 2024-08-14 goderbauer@google.com Lint sync (flutter/flutter#153453) 2024-08-14 goderbauer@google.com manual pub roll w/ gradle updates (flutter/flutter#153403) 2024-08-14 43054281+camsim99@users.noreply.github.com Update docs to use new Android version in the engine (flutter/flutter#151601) 2024-08-14 christopherfujino@gmail.com move some tool TESTOWNERS entries to andrew (flutter/flutter#153400) 2024-08-14 42016383+DBowen33@users.noreply.github.com Slider shows visual label of value on focus (flutter/flutter#152960) 2024-08-14 tessertaha@gmail.com Add `Row` and `Column` widgets specific `spacing` tests (flutter/flutter#153353) 2024-08-14 120297255+PurplePolyhedron@users.noreply.github.com Delay `DropdownMenu` filtering until text input (flutter/flutter#152368) 2024-08-14 737941+loic-sharma@users.noreply.github.com Update cherry pick issue template's PR field (flutter/flutter#153381) 2024-08-14 engine-flutter-autoroll@skia.org Roll Flutter Engine from 5909666fdedb to 328c4df8329f (1 revision) (flutter/flutter#153436) 2024-08-14 kustermann@google.com [web] Pass `--no-source-maps` instead of `--extra-compiler-option=--no-source-maps` to `dart compile wasm` (flutter/flutter#153417) 2024-08-14 engine-flutter-autoroll@skia.org Manual roll Flutter Engine from 019f9e3f0744 to 5909666fdedb (12 revisions) (flutter/flutter#153413) 2024-08-14 120297255+PurplePolyhedron@users.noreply.github.com Move `@_debugOnly` documentation in `framework.dart` to be more visible to IDE. (flutter/flutter#153134) 2024-08-13 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4246f1536c5d to 019f9e3f0744 (2 revisions) (flutter/flutter#153394) 2024-08-13 44146839+essjay05@users.noreply.github.com fix(flutter/a11y assessments): h1 missing a11y from each page on the web app (flutter/flutter#152198) 2024-08-13 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.26.0 to 3.26.1 (flutter/flutter#153395) 2024-08-13 engine-flutter-autoroll@skia.org Roll Packages from d9a6de8 to e4f2247 (4 revisions) (flutter/flutter#153383) 2024-08-13 137456488+flutter-pub-roller-bot@users.noreply.github.com Roll pub packages (flutter/flutter#153380) 2024-08-13 engine-flutter-autoroll@skia.org Roll Flutter Engine from 73c3135cc3be to 4246f1536c5d (2 revisions) (flutter/flutter#153377) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC rmistry@google.com,stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fixed issue to where value indicator label is not shown to user when initially focused. Before: [Screen recording 2024-08-05 12.16.24 PM.webm](https://github.com/user-attachments/assets/806e94d7-7c6c-40e5-93af-dbf2fb9e0dd4) After: https://screencast.googleplex.com/cast/NTY5NzIzMTYxNjIxMjk5MnxkY2IyMGNkYi1iZA Fixes flutter#113538
Fixed issue to where value indicator label is not shown to user when initially focused. Before: [Screen recording 2024-08-05 12.16.24 PM.webm](https://github.com/user-attachments/assets/806e94d7-7c6c-40e5-93af-dbf2fb9e0dd4) After: https://screencast.googleplex.com/cast/NTY5NzIzMTYxNjIxMjk5MnxkY2IyMGNkYi1iZA Fixes flutter#113538
Fixed issue to where value indicator label is not shown to user when initially focused.
Before: Screen recording 2024-08-05 12.16.24 PM.webm
After: https://screencast.googleplex.com/cast/NTY5NzIzMTYxNjIxMjk5MnxkY2IyMGNkYi1iZA
Fixes #113538
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.