I have been working with flutters Slider widget and been customizing my own SliderTickMarkShape for the SliderTheme. But I want each of the TickMarkers to display the current number. For example i want it to show the numbers below. 1 to 7, where the sliderthumb is set of number four. However, the SliderTickMarkShape can only cannot have variables. This makes me only able to have the same number for all slidertickmarks. Is there a way to make dynamic tick marks? So that each individual tick mark kan be unique, with for example showing another number.
1 2 3 (4) 5 6 7