How can I screen refresh?

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

What MCU/Processor/Board and compiler are you using?

STM32

What LVGL version are you using?

8.3.6

What do you want to achieve?

I’m experiencing a phenomenon where an event is triggered and the Text or obj whose style is changed is broken.

temporarily
lv_obj_add_flag(ui_Screen, LV_OBJ_FLAG_HIDDEN);
lv_obj_clear_flag(ui_Screen, LV_OBJ_FLAG_HIDDEN);
If I call and refresh it, it works to some extent and I am using it. Is there any way to refresh the entire screen in LVGL itself?

What have you tried so far?

I am using this to call the function that triggers the event.
void refesh()
{
lv_obj_add_flag(ui_Screen, LV_OBJ_FLAG_HIDDEN);
lv_obj_clear_flag(ui_Screen, LV_OBJ_FLAG_HIDDEN);
}

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.