separated_row
3.0.4, released 2 years ago by emaq.ba
Flutter widget that renders a Row and automatically injects separators between children.
What it does
SeparatedRow renders a Row widget while dynamically injecting separators between its children using a builder function. It also supports optional outer separators before the first and after the last element.
AI-written summary of version 3.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display a Row with consistent spacing or dividers between every child.
- You want to avoid manually repeating divider widgets between list items in a horizontal layout.
Skip it when
- You are building a vertical list or column instead of a horizontal row.
- You do not need dynamic separators between items.
Strengths
- Simplifies horizontal layouts by automating separator insertion.
- Supports custom separator builders and outer separator modes.
Weaknesses
- Limited to row layouts, though a companion package exists for columns.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
SeparatedRow(
children: [
Text("Item 1"),
Text("Item 2"),
],
separatorBuilder: (BuildContext context, int index) => const VerticalDivider(),
)Alternatives
Packages that do the same job and could replace separated_row.
- stretch_wrap
A Flutter widget that wraps children into rows and stretches designated items to fill remaining space.
50Compare - dotted_separator
A Flutter package providing customizable dotted separators and container widgets.
41Compare - invert_colors
A lightweight widget that inverts the colors of its children.
38Compare
Works with
Packages commonly used together with separated_row: ones it builds on, ones built on it, and its own family.