chore: re-export iced row and column
This removes the custom row and column implementations and uses the iced ones directly.
This commit is contained in:
parent
a9e0671075
commit
fdf3369cea
20 changed files with 103 additions and 227 deletions
|
|
@ -34,10 +34,10 @@ pub fn toaster<'a, Message: Clone + 'static>(
|
|||
} = theme.cosmic().spacing;
|
||||
|
||||
let make_toast = move |(id, toast): (ToastId, &'a Toast<Message>)| {
|
||||
let row = row()
|
||||
let row = row::with_capacity(2)
|
||||
.push(text(&toast.message))
|
||||
.push(
|
||||
row()
|
||||
row::with_capacity(2)
|
||||
.push_maybe(toast.action.as_ref().map(|action| {
|
||||
button::text(&action.description).on_press((action.message)(id))
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue