When use Flex layout, how to set the gap of each item?

hi, I have a question, how to set the gap of each item when i use Flex layout?

sub_container = lv_img_create(container) ;
lv_obj_set_flex_flow(sub_container, LV_FLEX_FLOW_COLUMN) ;
for(int i = 0; i < help_list->pSubList.size(); i++){
ut_list_cell *sub_list_cell = new ut_list_cell() ;
sub_cell.push_back(NULL) ;
sub_cell.back().reset(sub_list_cell) ;
sub_cell[sub_cell.size() - 1]->init(sub_container, help_list->pSubList[i].get()) ;
}

1 Like