feat(widget): initial implementation of Grid widget

This commit is contained in:
Michael Aaron Murphy 2023-10-02 16:46:16 +02:00 committed by Michael Murphy
parent 9ddadd330f
commit e1d1b0bad5
5 changed files with 509 additions and 0 deletions

12
src/widget/grid/mod.rs Normal file
View file

@ -0,0 +1,12 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
pub mod layout;
pub mod widget;
pub use widget::{Grid, Item};
/// Responsively generates rows and columns of widgets based on its dimmensions.
pub const fn grid<'a, Message>() -> Grid<'a, Message> {
Grid::new()
}