"Couch to 5 km" is an app commonly found in the app store that helps people who are non-runners (such as me) build up over a 9 week period into runners who should be able to complete 5 kilometres in 30 minutes.
In the past I have attempted it 3 times and succeeded once. However, whilst I could run for 30 minutes non-stop, I did not reach 5 kilometres. Rather than download another app, I decided to write my own.
The app consists of:
- List of countdown timers
- Start / Pause / Stop button
- Indicator to run or walk
- Sound to indicate whether to start running or walking
This is my first Flutter app, and as they say "you need to write a lot of bad code before you learn to write good code." Currently there is one widget with all the functionality that should be split. Another improvement is to use streaming - but since I have not learned this yet, I decided to try a different approach to tracking status of countdowns.
Here are some images of the app.
Here is a link to the code in GitHub.
X / Twitter post about the app:
Finally finished my first Flutter app. It's a "couch to 5km" app that helps get me back into running. Really, just a series of timers, start/pause/stop buttons and simple audio "Start running" and "Start walking." The code and UI are terrible... but it works!
— Leigh-2038 (@s_leigh_2038) September 2, 2024
No comments:
Post a Comment