Fix text::State downcast in some widgets

This commit is contained in:
Héctor Ramón Jiménez 2024-07-19 00:59:54 +02:00
parent 1d1a5f1a28
commit c851e67734
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 10 additions and 4 deletions

View file

@ -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>