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
source ( It is same to the example in the README.md ):
use druid::{
widget::{Align,Button,Flex,Label,Padding,WidgetExt},AppLauncher,LocalizedString,Widget,WindowDesc};fnmain(){let main_window = WindowDesc::new(ui_builder);let data = 0_u32;AppLauncher::with_window(main_window).use_simple_logger().launch(data).expect("launch failed");}fnui_builder() -> implWidget<u32>{// The label text will be computed dynamically based on the current locale and countlet text = LocalizedString::new("hello-counter").with_arg("count", |data:&u32, _env| (*data).into());let label = Label::new(text).padding(5.0).center();let button = Button::new("increment", |_ctx, data, _env| *data += 1).padding(5.0);Flex::column().with_child(label,1.0).with_child(button,1.0)}
The text was updated successfully, but these errors were encountered:
I got the error log in the terminal when I minimize the window( 100% repro ):
It is not a critical error, but I want to run an app without an errors.
druid = { git = "https://github.com/xi-editor/druid.git", version = "0.5" }
The text was updated successfully, but these errors were encountered: