Flet-Custom-Controls icon indicating copy to clipboard operation
Flet-Custom-Controls copied to clipboard

How to update slider dynamically?

Open syleishere opened this issue 3 months ago • 0 comments

Been trying to combine it with on_duration_changed from audio plugin can't seem to find a way without removing control and adding it back. Also it is very chatty plugin causing issues on android UI.....

I added:         
+self.on_pan_end = self.__on_exit
+self.on_long_press_end = self.__on_exit
-if self.on_change is not None:
-    self.on_change(self.value)

+    def __on_exit(self, e):
+       print(f"Made it to EXIT HANDLER!!!")
+       if self.on_change is not None:
+            self.on_change(self.value)

But now if I click on it anywhere won't send value, needs some bug fixups and capabilities like a real slider

syleishere avatar Mar 31 '24 04:03 syleishere