pub fn dynamic<T: Data>(text: impl Fn(&T, &Env) -> String + 'static) -> Label<T>
Expand description

以默认主题字体 crate::theme::color::typography::BASE 和颜色 crate::theme::color::typography::FONT_COLOR 创建一个动态标签组件 [druid::widget::Label]