Use same name & order for toggler::new and helper

The helper function for the toggler widget switched the order and
name of the arguments passed when creating the toggler widget.
This just standardizes the order whether the dev is using the
helper or the associated function.
This commit is contained in:
13r0ck 2022-12-22 13:53:56 -07:00
parent a6d0d5773f
commit 5b556250be
2 changed files with 10 additions and 10 deletions

View file

@ -162,7 +162,7 @@ where
Renderer: crate::text::Renderer,
Renderer::Theme: widget::toggler::StyleSheet,
{
widget::Toggler::new(is_checked, label, f)
widget::Toggler::new(label, is_checked, f)
}
/// Creates a new [`TextInput`].