pingbird/boxy
Fork: 25 Star: 466 (更新于 2024-12-12 16:04:43)
license: NOASSERTION
Language: Dart .
Overcome limitations of built-in layouts, advanced flex, custom multi-child layouts, slivers, and more!
最后发布版本: 2.2.0 ( 2024-01-21 10:06:55)
About
Boxy is a Flutter package created to overcome the limitations of built-in layout widgets, it provides utilities for flex, custom multi-child layouts, dynamic widget inflation, slivers, and more!
The package is ready for production use, it has excellent documentation, test coverage, and passes strict analysis.
Check out the new wiki! https://boxy.wiki
Flex layouts
A common design problem is when you need one or more children of a Row
or Column
to have the same cross-axis size
as another child in the list, with boxy this can be achieved trivially using BoxyRow
, BoxyColumn
and Dominant
.
See the documentation of BoxyRow and BoxyColumn for more information.
Custom layouts
One of the pains of implementing custom layouts is learning the RenderObject
model and how verbose it is, to make this
process easier we provide an extremely simple container CustomBoxy
that delegates layout, paint, and hit testing.
The most powerful feature of CustomBoxy
is the ability to inflate arbitrary widgets at layout time, this means widgets
can depend on the size of others, something previously impossible without hacky workarounds.
See the documentation of CustomBoxy and BoxyDelegate for more information.
Slivers
Ever want to give SliverList a box decoration? The sliver library provides SliverContainer which allows you to use box widgets as the foreground or background of a sliver.
This library also provides SliverCard, a SliverContainer that looks like a card.
Also check out:
- SliverPadding, an underrated built-in widget
- sliver_tools, a cool package that does similar things
Miscellaneous
The utils library provides extensions with dozens
of axis-dependant methods on BoxConstraints
, Size
, Offset
, and more. These extensions make writing directional
layouts significantly less cumbersome.
The OverflowPadding widget is similar to
Padding
but allows the child to overflow when given negative insets.
最近版本更新:(数据更新于 2024-09-13 17:44:30)
2024-01-21 10:06:55 2.2.0
2023-11-02 00:58:30 2.1.3
2023-10-12 03:52:34 2.1.2
2023-10-06 06:02:12 2.1.1
2023-08-17 04:34:46 2.1.0
2023-03-26 04:15:01 2.0.9
2023-02-13 10:57:02 2.0.8
2023-02-05 00:11:05 2.0.7
2022-08-05 11:07:14 2.0.6+2
2022-06-17 01:04:57 2.0.6+1
主题(topics):
flutter
pingbird/boxy同语言 Dart最近更新仓库
2024-12-22 15:25:05 Xmarmalade/alisthelper
2024-12-19 13:46:32 3003h/Eros-FE
2024-12-17 11:45:14 KaringX/karing
2024-12-14 22:23:30 guozhigq/pilipala
2024-12-09 02:47:22 KRTirtho/spotube
2024-12-09 00:51:26 chen08209/FlClash