Fix text::State downcast in some widgets
This commit is contained in:
parent
1d1a5f1a28
commit
c851e67734
4 changed files with 10 additions and 4 deletions
|
|
@ -154,7 +154,7 @@ where
|
|||
|
||||
/// The internal state of a [`Text`] widget.
|
||||
#[derive(Debug, Default)]
|
||||
pub struct State<P: Paragraph>(paragraph::Plain<P>);
|
||||
pub struct State<P: Paragraph>(pub paragraph::Plain<P>);
|
||||
|
||||
impl<'a, Message, Theme, Renderer> Widget<Message, Theme, Renderer>
|
||||
for Text<'a, Theme, Renderer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue