feat(widget): Reimplement FlexRow as iced::Widget

This commit is contained in:
Michael Aaron Murphy 2023-09-20 16:14:40 +02:00 committed by Michael Murphy
parent aa2dfe0ea5
commit d973dafba7
4 changed files with 286 additions and 137 deletions

View 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)
}