You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question. When I use Image Widget, I want to initialize the image to get the variables in ImageList when creating it. Thank you for your answer
`fn image_list() -> impl Widget{
let image_buf = ImageBuf::from_file("E:/bizhi/00.jpg").unwrap();
let image_show = Image::new(image_buf).fill_mode(FillStrat::Contain).controller(ImageController{});
let size_box_image = SizedBox::new(image_show).height(50.).width(50.);
Flex::row()
.with_flex_spacer(10.)
.with_child(size_box_image)
.with_flex_spacer(10.)
}`
Change the address E:/bizhi/00.jpg to the variable in ImageList
Thank you for your answer
The text was updated successfully, but these errors were encountered:
I have a question. When I use Image Widget, I want to initialize the image to get the variables in ImageList when creating it. Thank you for your answer
`fn image_list() -> impl Widget{
}`
Change the address E:/bizhi/00.jpg to the variable in ImageList
Thank you for your answer
The text was updated successfully, but these errors were encountered: