use same name & order for checkbox::new and helper
The helper function for the checkbox widget switched the order and name of the arguments passed when creating the checkbox widget. This just standardizes the order whether the dev is using the helper or the associated function. Continuation of https://github.com/iced-rs/iced/pull/1616
This commit is contained in:
parent
f641e20f7f
commit
d8536e6248
2 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ where
|
|||
Renderer: crate::text::Renderer,
|
||||
Renderer::Theme: widget::checkbox::StyleSheet + widget::text::StyleSheet,
|
||||
{
|
||||
widget::Checkbox::new(is_checked, label, f)
|
||||
widget::Checkbox::new(label, is_checked, f)
|
||||
}
|
||||
|
||||
/// Creates a new [`Radio`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue