Skip to content

add example widget#348

Open
fbiego wants to merge 3 commits intolvgl:masterfrom
fbiego:master
Open

add example widget#348
fbiego wants to merge 3 commits intolvgl:masterfrom
fbiego:master

Conversation

@fbiego
Copy link
Copy Markdown

@fbiego fbiego commented Mar 31, 2026

  • wd_segment widget

- wd_segment widget
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 31 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="tutorials/9_new_widget/widgets/wd_segment/wd_segment.c">

<violation number="1" location="tutorials/9_new_widget/widgets/wd_segment/wd_segment.c:131">
P2: Observer callback updates only the UI state and never synchronizes widget->selected, leaving wd_segment_get_selected() stale after bound-value updates.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

* GLOBAL FUNCTIONS
**********************/

void new_widget_init(const char * asset_path)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these new_widget files are not needed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming, isn't this the main entry point of the project?

I might need to rename the project name to ui_new_widget to follow the same convention

* GLOBAL FUNCTIONS
**********************/
void ui_new_component_init(const char * asset_path)
{
ui_new_component_init_gen(asset_path);
/* Add your own custom code here if needed */
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants