fold_wrap 0.0.1 copy "fold_wrap: ^0.0.1" to clipboard
fold_wrap: ^0.0.1 copied to clipboard

Collapsible Word Wrap Widget

Description #

Fold Wrap can auto wrap, and also can fold excess rows or expand them. This Widget is suitable for scenarios similar to the history of the search page.

Folded

image

Expanded

image

How to Use #

Given List<Widget> and set which line needs to be collapsed, and can set space and runSpace like Wrap. And you should set the extentHeight for the **max height **of each row. Like that

FoldWrap(
    children: <Widget>[...],
    extentHeight: 30,
    spacing: 10,
    runSpacing: 10,
    isFold: ture, // controller fold
    foldLine: 2,
)
copied to clipboard

foldWidget can set the button at the end after folding.

FoldWrap(
  foldWidget: Icon(..),
  foldWidgetInEnd: true,
)
copied to clipboard

foldWidgetInEnd set that whether foldWidget is to be at the end of the line. Default is false.

The end #

If you have any questions or suggestions, you can ask them in the issue, and I will answer them as soon as possible.

2
likes
120
points
225
downloads

Publisher

unverified uploader

Weekly Downloads

2024.07.06 - 2025.01.18

Collapsible Word Wrap Widget

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fold_wrap