Remove empty navbar option
This commit is contained in:
parent
06af4ec608
commit
b092157f26
1 changed files with 0 additions and 7 deletions
|
|
@ -49,10 +49,6 @@ where
|
||||||
Renderer: iced_native::Renderer + 'a,
|
Renderer: iced_native::Renderer + 'a,
|
||||||
Renderer::Theme: StyleSheet,
|
Renderer::Theme: StyleSheet,
|
||||||
{
|
{
|
||||||
pub fn new() -> Self {
|
|
||||||
Self::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Creates a [`NavBar`] with the given elements.
|
/// Creates a [`NavBar`] with the given elements.
|
||||||
pub fn with_children(
|
pub fn with_children(
|
||||||
children: Vec<Element<'a, Message, Renderer>>,
|
children: Vec<Element<'a, Message, Renderer>>,
|
||||||
|
|
@ -335,9 +331,6 @@ where
|
||||||
/// [`Row`]: widget::Row
|
/// [`Row`]: widget::Row
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! navbar {
|
macro_rules! navbar {
|
||||||
() => (
|
|
||||||
$crate::widget::NavBar::new()
|
|
||||||
);
|
|
||||||
($($x:expr),+ $(,)?) => (
|
($($x:expr),+ $(,)?) => (
|
||||||
$crate::widget::NavBar::with_children(vec![$($crate::iced::Element::from($x)),+])
|
$crate::widget::NavBar::with_children(vec![$($crate::iced::Element::from($x)),+])
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue