Internet Speed Meter shows live download and upload speeds all the time, and can run a quick speed test on demand.
Kotlin, TrafficStats, foreground service, AppWidgetProvider, WorkManager.
Complete and installable as an Android app. Not yet published on Google Play.