I found this help on StatefulBuilder and it shows how to use setState to update things in a ModalBottomSheet. But I want to go one more step and make a timer to do this.
https://mcmap.net/q/210481/-how-to-update-state-of-a-modalbottomsheet-in-flutter
I create the timer like this inside the stateful builder:
var bottomSheetTimer = Timer.periodic(const Duration(milliseconds: 1000), (timer) {
setState(() {
currSeekTime += 1;
print("here");
});
});
This prints out every second but the setState() isn't within the "builder" so nothing in the bottom tab updates. But if I put it in the builder it creates a LOT of timers.
Any help would be appreciated!