fix(toast): match toast to design
This commit is contained in:
parent
76667418d8
commit
a268a98311
2 changed files with 40 additions and 11 deletions
|
|
@ -141,10 +141,13 @@ where
|
|||
&'b mut self,
|
||||
state: &'b mut Tree,
|
||||
layout: Layout<'_>,
|
||||
_renderer: &Renderer,
|
||||
renderer: &Renderer,
|
||||
) -> Option<overlay::Element<'b, Message, Theme, Renderer>> {
|
||||
//TODO: this hides the overlay of the content during the toast
|
||||
if self.is_empty {
|
||||
None
|
||||
self.content
|
||||
.as_widget_mut()
|
||||
.overlay(&mut state.children[0], layout, renderer)
|
||||
} else {
|
||||
let bounds = layout.bounds();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue