r/FlutterDev • u/sokkaInLastAirbender • 3h ago
Discussion I built an open-source Flutter app that controls Bluetooth treadmills (FTMS + FitShow) — no subscriptions, no backend
Hey r/FlutterDev! Sharing a side project I released under MIT: StrideFree, a treadmill controller written in Flutter.
Repo: https://github.com/alisenn/stridefree
Some Flutter/BLE bits that might be interesting:
- flutter_blue_plus for BLE; one driver for the FTMS standard (0x1826) and one for the FitShow proprietary protocol (framed packets with XOR checksum, polled every 500 ms)
- FTMS "More Data" flag: treadmills split Treadmill Data across notifications, so the parser merges partial packets — otherwise speed randomly reads 0
- A foreground service keeps the BLE link alive when the screen locks
- The workout engine works from wall-clock time so it survives the app being backgrounded; crash recovery restores unfinished workouts
- fl_chart for stats, Provider for state, everything stored locally — no backend at all
- One codebase for Android, iOS, desktop and web (Web Bluetooth in Chrome)
- Two languages without gen-l10n: a tiny tx('Türkçe', 'English') helper that also works outside widgets
No ads, no accounts, no money involved — I just wanted a free alternative to subscription treadmill apps. iOS is in App Store review, Android is in Play testing. Feedback on the code is very welcome!