widget not refreshing on first install app

After adding dark mode to the widget, the first time the application is installed, the add widget interface cannot be refreshed, and the content cannot be displayed normally
After restarting the phone, or reopening the application, the main project calls the widget to refresh, and then it can be displayed normally?
widget not refreshing on first install app
 
 
Q