A widget that draws a brace alongside another widget. Useful to group list items together.

Features

Sample Sample Sample

Prerequisites

None, just do a quick flutter pub get brace_display and you're set.

Usage

BraceDisplay(
  header: Text("Items"),
  direction: BraceDirection.left, // or BraceDirection.right. Defaults to left.
  child: Column(
    crossAxisAlignment: CrossAxisAlignment.start, // to justify the text close to the brace
    children:[
      Text("Item 1"),
      Text("Item 2"),
      Text("Item 3"),
    ]
  ),

Libraries

brace_display