single_centered_multi_child_layout 1.0.1 copy "single_centered_multi_child_layout: ^1.0.1" to clipboard
single_centered_multi_child_layout: ^1.0.1 copied to clipboard

This is a very simple widget that allows you to fix one widget in the center and place other widgets around it.

The usage of this is very simple. It allows you to fix one widget in the center and place other widgets above, below, to the left, and to the right of it. There’s no need to hide unnecessary widgets to align the same widget in the center on various dynamic screens.

It is very useful in the following situations.

https://github.com/user-attachments/assets/8ad29887-748e-400b-a65c-6adbaf41c354

-- APIs

/// The widget to be positioned at the center.
final Widget centeredWidget;

/// An optional widget to be positioned at the bottom.
final Widget? bottomWidget;

/// An optional widget to be positioned at the top.
final Widget? topWidget;

/// An optional widget to be positioned on the left.
final Widget? leftWidget;

/// An optional widget to be positioned on the right.
final Widget? rightWidget;

/// The gap between the top widget and the centered widget. Default is 0.
final double topGap;

/// The gap between the bottom widget and the centered widget. Default is 0.
final double bottomGap;

/// The gap between the left widget and the centered widget. Default is 0.
final double leftGap;

/// The gap between the right widget and the centered widget. Default is 0.
final double rightGap;
3
likes
160
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

This is a very simple widget that allows you to fix one widget in the center and place other widgets around it.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on single_centered_multi_child_layout