alitorki2651 / flutter_gauge

Other
24 stars 28 forks source link

Update widget after change index value #3

Open valientegaston opened 4 years ago

valientegaston commented 4 years ago

Hi! I'm using Provider as injector to change index value in realtime. Index value changes, but not widget update happening. Any clue? Thank you!

madc commented 4 years ago

I'm facing the same issue. The gauge animates to the initial issue and stays there regardless of any change on the index parameter.

valientegaston commented 4 years ago

I fixed it. Just uncomment "eventObservable.add(widget.index);" inside build override method of _FlutterGaugeState class in flutter_gauge.dart file.

carlosmcodes commented 4 years ago

also facing the same issue. the suggestion above did not work for me :(

did anyone else figure out another route?

svijay7598 commented 4 years ago

I fixed it. Just uncomment "eventObservable.add(widget.index);" inside build override method of _FlutterGaugeState class in flutter_gauge.dart file.

yes this is worked for me ,I just uncomment the lines which are commented in flutter_gauge.dart file.

virtuosonic commented 4 years ago

also facing the same issue. the suggestion above did not work for me :(

did anyone else figure out another route?

I uncommented all of _"fluttergauge.dart" and then clicked 'Flutter Hot Restart' in Android Studio