Export operate constructor in advanced::widget

This commit is contained in:
Héctor Ramón Jiménez 2024-07-14 22:58:30 +02:00
parent fd0abe18d0
commit 950bfc07d4
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 14 additions and 9 deletions

View file

@ -1,4 +1,17 @@
//! Leverage advanced concepts like custom widgets.
pub mod subscription {
//! Write your own subscriptions.
pub use crate::runtime::futures::subscription::{
from_recipe, into_recipes, EventStream, Hasher, Recipe,
};
}
pub mod widget {
//! Create custom widgets and operate on them.
pub use crate::core::widget::*;
pub use crate::runtime::task::widget as operate;
}
pub use crate::core::clipboard::{self, Clipboard};
pub use crate::core::image;
pub use crate::core::layout::{self, Layout};
@ -7,13 +20,6 @@ pub use crate::core::overlay::{self, Overlay};
pub use crate::core::renderer::{self, Renderer};
pub use crate::core::svg;
pub use crate::core::text::{self, Text};
pub use crate::core::widget::{self, Widget};
pub use crate::core::Shell;
pub use crate::renderer::graphics;
pub mod subscription {
//! Write your own subscriptions.
pub use crate::runtime::futures::subscription::{
from_recipe, into_recipes, EventStream, Hasher, Recipe,
};
}
pub use widget::Widget;

View file

@ -423,7 +423,6 @@ impl<State, Message> Update<State, Message> for () {
_state: &mut State,
_message: Message,
) -> impl Into<Task<Message>> {
()
}
}