Bug: Device.isUsingDarkAppearance() in Widget always returns True

Try this function isUsingDarkAppearance