Puh this is weird. Might have to do with your specific device. I can look into it, not sure though whether I can detect which widget to instantiate. Does it work for other widgets?
Also if you can upgrade to Android 10 it might work nicer with the official dark mode