Skip to content

Material Slider track should be customizable. #19216

Closed

Description

@gspencergoog

Currently the slider thumb and value indicator are fully customizable because the developer can provide their own painter for them, but they are stuck with the material slider's track.

It would be good to add a similar mechanism for the track, factoring out the existing track rendering, and adding a setting for it to the SliderThemeData class.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Jul 10, 2018
  2. eduardhasanaj commented on Jul 10, 2018

    @eduardhasanaj

    I think that also heigh of thumb should be added to theme data, and based on it, track height can scale to an size, I mean height. It is very overwhelming to use painter to change thumb size.

  3. kibantony commented on Jul 10, 2018

    @kibantony

    Here's an example of a slider design that we'd like to be able to achieve in Flutter:
    image

  4. gspencergoog commented on Jul 10, 2018

    @gspencergoog
    ContributorAuthor

    Yeah, you won't be able to achieve that easily until we've fixed this limitation in the slider API.

  5. kibantony commented on Jul 10, 2018

    @kibantony

    Understood. Happy to roll our own until then.

  6. added this to the milestone on Jan 24, 2019
  7. clocksmith commented on Feb 25, 2019

    @clocksmith
    Contributor

    This is possible after #25008

  8. zoechi commented on Feb 26, 2019

    @zoechi
    Contributor

    Thanks @clocksmith !

  9. github-actions commented on Aug 15, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions