Make text wrap configurable

This commit is contained in:
Jeremy Soller 2024-07-08 20:44:03 -06:00
parent 48f5966eaf
commit c9a2265ab1
7 changed files with 21 additions and 2 deletions

View file

@ -502,6 +502,7 @@ impl<'a, S: AsRef<str>, Message> Widget<Message, crate::Theme, crate::Renderer>
horizontal_alignment: alignment::Horizontal::Left,
vertical_alignment: alignment::Vertical::Center,
shaping: text::Shaping::Advanced,
wrap: text::Wrap::default(),
},
bounds.position(),
color,