boeledi / RangeSlider

RangeSlider Widget for Flutter
Other
374 stars 66 forks source link

Value indicator is blank for first value #14

Open brunocalou opened 5 years ago

brunocalou commented 5 years ago

When I click any thumb, the indicator does not show the current value.

Screenshot_20190312-090642

Code to reproduce

RangeSlider(
          min: 0,
          max: 120,
          lowerValue: 0,
          upperValue: 10,
          divisions: 120,
          showValueIndicator: true,
          valueIndicatorFormatter: (index, value) => DateFormat('MMMM y')
              .format(DateTime.now().add(Duration(days: 30 * value.toInt()))),
          onChanged: (_, __) {},
        ),

How to reproduce

Click any thumb without moving it. The indicator will be blank. After moving the thumb, it works as expected.

Expected behavior

The indicator should always show the current value.

environment:
  sdk: ">=2.1.0 <3.0.0"
dependencies:
  flutter_range_slider: ^1.1.0
boeledi commented 5 years ago

Hi Bruno,

I could not reproduce your issue, reusing your code. On my end, everything works fine.

brunocalou commented 5 years ago

Hello,

I have investigated a little bit and found out it was a bug in the Flutter framework. The same bug happens using the default slider on the latest Flutter version.

I have opened an issue -> https://github.com/flutter/flutter/issues/29735

Allan-Nava commented 5 years ago

How can I put the minValue and maxValue always visible?

bhaskar8088 commented 4 years ago

How can I put the minValue and maxValue always visible?

Is it possible to show min value and max value always either using your plugin or flutter default Slider?