feat(widget): Reimplement FlexRow as iced::Widget
This commit is contained in:
parent
aa2dfe0ea5
commit
d973dafba7
4 changed files with 286 additions and 137 deletions
14
src/widget/flex_row/mod.rs
Normal file
14
src/widget/flex_row/mod.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
pub mod layout;
|
||||
pub mod widget;
|
||||
|
||||
pub use widget::FlexRow;
|
||||
|
||||
use crate::Element;
|
||||
|
||||
/// Responsively generates rows and columns of widgets based on its dimmensions.
|
||||
pub const fn flex_row<Message>(children: Vec<Element<Message>>) -> FlexRow<Message> {
|
||||
FlexRow::new(children)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue