fix!(progress_bar): remove unused generic Message type

This commit is contained in:
Ashley Wulber 2026-04-08 01:38:18 -04:00 committed by GitHub
parent c7093beca3
commit 47ab72be50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,21 +3,21 @@ pub mod linear;
pub mod style;
/// A spinner / throbber widget that can be used to indicate that some operation is in progress.
pub fn indeterminate_circular<Message>() -> circular::Circular<crate::Theme> {
pub fn indeterminate_circular() -> circular::Circular<crate::Theme> {
circular::Circular::new()
}
/// A linear throbber widget that can be used to indicate that some operation is in progress.
pub fn indeterminate_linear<Message>() -> linear::Linear<crate::Theme> {
pub fn indeterminate_linear() -> linear::Linear<crate::Theme> {
linear::Linear::new()
}
/// A circular progress spinner widget that can be used to indicate the progress of some operation.
pub fn determinate_circular<Message>(progress: f32) -> circular::Circular<crate::Theme> {
pub fn determinate_circular(progress: f32) -> circular::Circular<crate::Theme> {
circular::Circular::new().progress(progress)
}
/// A linear progress bar widget that can be used to indicate the progress of some operation.
pub fn determinate_linear<Message>(progress: f32) -> linear::Linear<crate::Theme> {
pub fn determinate_linear(progress: f32) -> linear::Linear<crate::Theme> {
linear::Linear::new().progress(progress)
}